mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Add _tempSpellType as placeholder for any future passthru
This commit is contained in:
@@ -2137,6 +2137,7 @@ void Bot::AI_Process()
|
|||||||
SetSpellTargetList(spellTargetList);
|
SetSpellTargetList(spellTargetList);
|
||||||
std::vector<Mob*> groupSpellTargetList = GatherSpellTargets();
|
std::vector<Mob*> groupSpellTargetList = GatherSpellTargets();
|
||||||
SetGroupSpellTargetList(groupSpellTargetList);
|
SetGroupSpellTargetList(groupSpellTargetList);
|
||||||
|
SetTempSpellType(UINT16_MAX);
|
||||||
|
|
||||||
// HEAL ROTATION CASTING CHECKS
|
// HEAL ROTATION CASTING CHECKS
|
||||||
HealRotationChecks();
|
HealRotationChecks();
|
||||||
|
|||||||
@@ -467,6 +467,8 @@ public:
|
|||||||
void SetGroupSpellTargetList(std::vector<Mob*> spellTargetList) { _groupSpellTargetList = spellTargetList; }
|
void SetGroupSpellTargetList(std::vector<Mob*> spellTargetList) { _groupSpellTargetList = spellTargetList; }
|
||||||
Raid* GetStoredRaid() { return _storedRaid; }
|
Raid* GetStoredRaid() { return _storedRaid; }
|
||||||
void SetStoredRaid(Raid* storedRaid) { _storedRaid = storedRaid; }
|
void SetStoredRaid(Raid* storedRaid) { _storedRaid = storedRaid; }
|
||||||
|
uint16 GetTempSpellType() { return _tempSpellType; }
|
||||||
|
void SetTempSpellType(uint16 spellType) { _tempSpellType = spellType; }
|
||||||
void AssignBotSpellsToTypes(std::vector<BotSpells_Struct>& AIBot_spells, std::unordered_map<uint16, std::vector<BotSpells_Struct_wIndex>>& AIBot_spells_by_type);
|
void AssignBotSpellsToTypes(std::vector<BotSpells_Struct>& AIBot_spells, std::unordered_map<uint16, std::vector<BotSpells_Struct_wIndex>>& AIBot_spells_by_type);
|
||||||
bool IsTargetAlreadyReceivingSpell(Mob* tar, uint16 spell_id);
|
bool IsTargetAlreadyReceivingSpell(Mob* tar, uint16 spell_id);
|
||||||
bool DoResistCheck(Mob* target, uint16 spell_id, int32 resist_limit);
|
bool DoResistCheck(Mob* target, uint16 spell_id, int32 resist_limit);
|
||||||
@@ -1105,6 +1107,7 @@ private:
|
|||||||
std::vector<Mob*> _spellTargetList;
|
std::vector<Mob*> _spellTargetList;
|
||||||
std::vector<Mob*> _groupSpellTargetList;
|
std::vector<Mob*> _groupSpellTargetList;
|
||||||
Raid* _storedRaid;
|
Raid* _storedRaid;
|
||||||
|
uint16 _tempSpellType;
|
||||||
|
|
||||||
// Private "base stats" Members
|
// Private "base stats" Members
|
||||||
int32 _baseMR;
|
int32 _baseMR;
|
||||||
|
|||||||
@@ -56,7 +56,8 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint16 spellType, uint16 subTarge
|
|||||||
|
|
||||||
uint8 botClass = GetClass();
|
uint8 botClass = GetClass();
|
||||||
|
|
||||||
SetCastedSpellType(UINT16_MAX);
|
SetCastedSpellType(UINT16_MAX); // this is for recast timers
|
||||||
|
SetTempSpellType(spellType); // this is for spell checks
|
||||||
|
|
||||||
BotSpell botSpell;
|
BotSpell botSpell;
|
||||||
botSpell.SpellId = 0;
|
botSpell.SpellId = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user