Преглед изворни кода

Remove the NPC->Player side of the check for attackable, allows statues or other npcs to aggro and attack you, but you cannot attack them

Emagi пре 5 месеци
родитељ
комит
3a256b21cc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      EQ2/source/WorldServer/Combat.cpp

+ 1 - 1
EQ2/source/WorldServer/Combat.cpp

@@ -97,7 +97,7 @@ bool Entity::AttackAllowed(Entity* target, float distance, bool range_attack) {
 		return false;
 	}
 	
-	if((!target->IsPlayer() && !target->GetAttackable()) || (!IsPlayer() && !GetAttackable())) {
+	if(!target->IsPlayer() && !target->GetAttackable()) {
 		return false;
 	}