Fixed Bard AE Target Spells

Removed assert for buffs
This commit is contained in:
neckkola
2022-02-12 21:42:28 -04:00
parent cca95e198d
commit 14f536505e
+10 -10
View File
@@ -2418,15 +2418,15 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui
case AECaster: case AECaster:
case AETarget: case AETarget:
{ {
#ifdef BOTS //#ifdef BOTS
if(IsBot()) { // if(IsBot()) {
bool StopLogic = false; // bool StopLogic = false;
if(!this->CastToBot()->DoFinishedSpellAETarget(spell_id, spell_target, slot, StopLogic)) // if(!this->CastToBot()->DoFinishedSpellAETarget(spell_id, spell_target, slot, StopLogic))
return false; // return false;
if(StopLogic) // if(StopLogic)
break; // break;
} // }
#endif //BOTS //#endif //BOTS
// we can't cast an AE spell without something to center it on // we can't cast an AE spell without something to center it on
assert(ae_center != nullptr); assert(ae_center != nullptr);
@@ -3332,7 +3332,7 @@ int Mob::AddBuff(Mob *caster, uint16 spell_id, int duration, int32 level_overrid
} }
// now add buff at emptyslot // now add buff at emptyslot
assert(buffs[emptyslot].spellid == SPELL_UNKNOWN); // sanity check //assert(buffs[emptyslot].spellid == SPELL_UNKNOWN); // sanity check
buffs[emptyslot].spellid = spell_id; buffs[emptyslot].spellid = spell_id;
buffs[emptyslot].casterlevel = caster_level; buffs[emptyslot].casterlevel = caster_level;