mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	sword attacks reflect in mirrors
This commit is contained in:
		| @@ -2834,7 +2834,9 @@ EX namespace sword { | ||||
|     if(s<0) s += sword_angles * 2; | ||||
|     s *= t; | ||||
|     s /= (sword_angles * 2); | ||||
|     return c->move(s); | ||||
|     auto c1 = c->move(s); | ||||
|     if(inmirror(c1)) c1 = mirror::reflect(c1).at; | ||||
|     return c1; | ||||
|     } | ||||
|    | ||||
|   EX cell *pos(cell *c, const sworddir& sd, bool rev) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue