[Bug Fix] Fix Bard Bot Casting (#3122)

This commit is contained in:
Aeadoin 2023-03-17 19:07:54 -04:00 committed by GitHub
parent 950489bc34
commit 0be7ead1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ bool Bot::BotCastSong(Mob* tar, uint8 botLevel) {
continue;
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
continue;
if (spells[iter.SpellId].zone_type != zone->GetZoneType())
if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType()))
continue;
switch (spells[iter.SpellId].target_type) {
case ST_AEBard:
@ -148,7 +148,7 @@ bool Bot::BotCastCombatSong(Mob* tar, uint8 botLevel) {
continue;
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
continue;
if (spells[iter.SpellId].zone_type != zone->GetZoneType())
if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType()))
continue;
switch (spells[iter.SpellId].target_type) {
case ST_AEBard:
@ -180,7 +180,7 @@ bool Bot::BotCastHateReduction(Mob* tar, uint8 botLevel, const BotSpell& botSpel
continue;
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
continue;
if (spells[iter.SpellId].zone_type != zone->GetZoneType())
if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType()))
continue;
if (spells[iter.SpellId].target_type != ST_Target)
continue;
@ -320,7 +320,7 @@ bool Bot::BotCastSlow(Mob* tar, uint8 botLevel, uint8 botClass, BotSpell& botSpe
continue;
}
if (spells[iter.SpellId].zone_type != zone->GetZoneType()) {
if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType())) {
continue;
}