1h - Disallow peacefull to fight wilderness.

This commit is contained in:
ulumulu1510 2016-02-26 19:29:15 +01:00 committed by Olof Larsson
parent 38a84c9416
commit 4dd71863c1

View File

@ -942,7 +942,7 @@ public class EngineMain extends Engine
Rel relation = defendFaction.getRelationTo(attackFaction);
// Check the relation
if (mdefender.hasFaction() && relation.isFriend() && defenderPsFaction.getFlag(MFlag.getFlagFriendlyire()) == false)
if (relation.isFriend() && defenderPsFaction.getFlag(MFlag.getFlagFriendlyire()) == false)
{
ret = falseUnlessDisallowedPvpEventCancelled(attacker, defender, event);
if (!ret && notify) uattacker.msg("<i>You can't hurt %s<i>.", relation.getDescPlayerMany());