Send attack block message when target is invulnerable.

Thanks to kamikadzz.
This commit is contained in:
MobiusDevelopment
2022-08-26 23:17:41 +00:00
parent e7003ad2b3
commit b81fca9c81
24 changed files with 24 additions and 24 deletions

View File

@ -11846,7 +11846,7 @@ public class Player extends Playable
}
SystemMessage sm = null;
if ((target.isHpBlocked() && !target.isNpc()) || (target.isPlayer() && target.isAffected(EffectFlag.DUELIST_FURY) && !isAffected(EffectFlag.FACEOFF)))
if ((target.isHpBlocked() && !target.isNpc()) || (target.isPlayer() && target.isAffected(EffectFlag.DUELIST_FURY) && !isAffected(EffectFlag.FACEOFF)) || (target.isInvul()))
{
sm = new SystemMessage(SystemMessageId.THE_ATTACK_HAS_BEEN_BLOCKED);
}