소스 검색

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;
 	}