mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-29 09:51:30 +00:00
more undos
This commit is contained in:
parent
6cbb4bcf47
commit
d0e6bb6e07
@ -1217,13 +1217,8 @@ bool Client::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, b
|
||||
|
||||
CommonBreakInvisibleFromCombat();
|
||||
|
||||
// Defensive procs from opponent happen here.
|
||||
// We, the attacker check for them and make them happen.
|
||||
// Added 2nd check for spell based defensive procs on opponent.
|
||||
if(GetTarget())
|
||||
{
|
||||
TriggerDefensiveProcs(other, Hand, true, damage);
|
||||
}
|
||||
|
||||
if (damage > 0)
|
||||
return true;
|
||||
@ -1788,13 +1783,8 @@ bool NPC::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, bool
|
||||
TrySkillProc(other, skillinuse, 0, true, Hand);
|
||||
}
|
||||
|
||||
// Defensive procs from opponent happen here.
|
||||
// We, the attacker check for them and make them happen.
|
||||
// Added 2nd check for spell based defensive procs on opponent.
|
||||
if(GetHP() > 0 && !other->HasDied())
|
||||
{
|
||||
TriggerDefensiveProcs(other, Hand, true, damage);
|
||||
}
|
||||
|
||||
if (damage > 0)
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user