Don't hurt truces

This commit is contained in:
Trent Hensler 2018-03-21 15:02:18 -07:00
parent 2675ae1760
commit 3e01b73ab0

View File

@ -405,7 +405,7 @@ public class FactionsEntityListener implements Listener {
} }
// You can never hurt faction members or allies // You can never hurt faction members or allies
if (relation.isMember() || relation.isAlly()) { if (relation.isMember() || relation.isAlly() || relation.isTruce()) {
if (notify) { if (notify) {
attacker.msg(TL.PLAYER_PVP_CANTHURT, defender.describeTo(attacker)); attacker.msg(TL.PLAYER_PVP_CANTHURT, defender.describeTo(attacker));
} }