mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-11 08:52:27 +00:00
[Bug Fix] Fix Bard Bot Casting (#3122)
This commit is contained in:
parent
950489bc34
commit
0be7ead1d1
@ -114,7 +114,7 @@ bool Bot::BotCastSong(Mob* tar, uint8 botLevel) {
|
|||||||
continue;
|
continue;
|
||||||
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
|
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
|
||||||
continue;
|
continue;
|
||||||
if (spells[iter.SpellId].zone_type != zone->GetZoneType())
|
if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType()))
|
||||||
continue;
|
continue;
|
||||||
switch (spells[iter.SpellId].target_type) {
|
switch (spells[iter.SpellId].target_type) {
|
||||||
case ST_AEBard:
|
case ST_AEBard:
|
||||||
@ -148,7 +148,7 @@ bool Bot::BotCastCombatSong(Mob* tar, uint8 botLevel) {
|
|||||||
continue;
|
continue;
|
||||||
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
|
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
|
||||||
continue;
|
continue;
|
||||||
if (spells[iter.SpellId].zone_type != zone->GetZoneType())
|
if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType()))
|
||||||
continue;
|
continue;
|
||||||
switch (spells[iter.SpellId].target_type) {
|
switch (spells[iter.SpellId].target_type) {
|
||||||
case ST_AEBard:
|
case ST_AEBard:
|
||||||
@ -180,7 +180,7 @@ bool Bot::BotCastHateReduction(Mob* tar, uint8 botLevel, const BotSpell& botSpel
|
|||||||
continue;
|
continue;
|
||||||
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
|
if (!CheckSpellRecastTimers(this, iter.SpellIndex))
|
||||||
continue;
|
continue;
|
||||||
if (spells[iter.SpellId].zone_type != zone->GetZoneType())
|
if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType()))
|
||||||
continue;
|
continue;
|
||||||
if (spells[iter.SpellId].target_type != ST_Target)
|
if (spells[iter.SpellId].target_type != ST_Target)
|
||||||
continue;
|
continue;
|
||||||
@ -320,7 +320,7 @@ bool Bot::BotCastSlow(Mob* tar, uint8 botLevel, uint8 botClass, BotSpell& botSpe
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spells[iter.SpellId].zone_type != zone->GetZoneType()) {
|
if (!IsSpellUsableThisZoneType(iter.SpellId, zone->GetZoneType())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user