mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-28 17:56:37 +00:00 
			
		
		
		
	Merge pull request #2437 from Capostrophic/hello
Disallow paralyzed actors to greet the player (bug #5074)
This commit is contained in:
		
						commit
						0bbb3788fe
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -106,6 +106,7 @@ | |||
|     Bug #5060: Magic effect visuals stop when death animation begins instead of when it ends | ||||
|     Bug #5063: Shape named "Tri Shadow" in creature mesh is visible if it isn't hidden | ||||
|     Bug #5069: Blocking creatures' attacks doesn't degrade shields | ||||
|     Bug #5074: Paralyzed actors greet the player | ||||
|     Bug #5075: Enchanting cast style can be changed if there's no object | ||||
|     Feature #1774: Handle AvoidNode | ||||
|     Feature #2229: Improve pathfinding AI | ||||
|  |  | |||
|  | @ -527,7 +527,8 @@ namespace MWMechanics | |||
|         if (greetingState == AiWanderStorage::Greet_None) | ||||
|         { | ||||
|             if ((playerPos - actorPos).length2() <= helloDistance*helloDistance && | ||||
|                 !player.getClass().getCreatureStats(player).isDead() && MWBase::Environment::get().getWorld()->getLOS(player, actor) | ||||
|                 !player.getClass().getCreatureStats(player).isDead() && !actor.getClass().getCreatureStats(actor).isParalyzed() | ||||
|                 && MWBase::Environment::get().getWorld()->getLOS(player, actor) | ||||
|                 && MWBase::Environment::get().getMechanicsManager()->awarenessCheck(player, actor)) | ||||
|                 greetingTimer++; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue