[Bug Fix] checking casting_spell_slot before its defined is bad (#2013)

This commit is contained in:
KayenEQ
2022-02-20 15:56:17 -05:00
committed by GitHub
parent 1c0524681e
commit 70eed67e08
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1312,7 +1312,7 @@ void Client::ActivateAlternateAdvancementAbility(int rank_id, int target_id) {
else {
// Bards can cast instant cast AAs while they are casting or channeling item cast.
if (GetClass() == BARD && IsCasting() && spells[rank->spell].cast_time == 0) {
if (!DoCastingChecksOnCaster(rank->spell)) {
if (!DoCastingChecksOnCaster(rank->spell, EQ::spells::CastingSlot::AltAbility)) {
return;
}