瀏覽代碼

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