[Bug Fix] Check for Song Skill Increase on Bard Pulse (#3586)

* check for song skill increase on bard pulse

* style changes

* fix spacing
This commit is contained in:
Clayton Dunwell 2023-09-17 14:29:48 -04:00 committed by GitHub
parent eb545a18a4
commit 65d4533568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2736,12 +2736,18 @@ bool Mob::ApplyBardPulse(int32 spell_id, Mob *spell_target, CastingSlot slot) {
Live does not spam client with do not take hold messages. Checking here avoids that from happening. Only try to reapply if charm fades. Live does not spam client with do not take hold messages. Checking here avoids that from happening. Only try to reapply if charm fades.
*/ */
if (spell_target->IsCharmed() && spells[spell_id].mana == 0 && spell_target->GetOwner() == this && IsEffectInSpell(spell_id, SE_Charm)) { if (spell_target->IsCharmed() && spells[spell_id].mana == 0 && spell_target->GetOwner() == this && IsEffectInSpell(spell_id, SE_Charm)) {
if (IsClient()) {
CastToClient()->CheckSongSkillIncrease(spell_id);
}
return true; return true;
} }
/* /*
If divine aura applied while pulsing, it is not interrupted but does not reapply until DA fades. If divine aura applied while pulsing, it is not interrupted but does not reapply until DA fades.
*/ */
if (DivineAura() && !IsCastNotStandingSpell(spell_id)) { if (DivineAura() && !IsCastNotStandingSpell(spell_id)) {
if (IsClient()) {
CastToClient()->CheckSongSkillIncrease(spell_id);
}
return true; return true;
} }
/* /*
@ -2755,6 +2761,9 @@ bool Mob::ApplyBardPulse(int32 spell_id, Mob *spell_target, CastingSlot slot) {
return false; return false;
} }
if (IsClient()) {
CastToClient()->CheckSongSkillIncrease(spell_id);
}
return true; return true;
} }