mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 20:56:37 +00:00
rename BOT_SPELL_TYPE functions
This commit is contained in:
+5
-5
@@ -2791,7 +2791,7 @@ bool IsLichSpell(uint16 spell_id)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BOT_SPELL_TYPES_DETRIMENTAL(uint16 spellType, uint8 cls) {
|
||||
bool IsBotSpellTypeDetrimental(uint16 spellType, uint8 cls) {
|
||||
switch (spellType) {
|
||||
case BotSpellTypes::Nuke:
|
||||
case BotSpellTypes::Root:
|
||||
@@ -2830,7 +2830,7 @@ bool BOT_SPELL_TYPES_DETRIMENTAL(uint16 spellType, uint8 cls) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BOT_SPELL_TYPES_BENEFICIAL(uint16 spellType, uint8 cls) {
|
||||
bool IsBotSpellTypeBeneficial(uint16 spellType, uint8 cls) {
|
||||
switch (spellType) {
|
||||
case BotSpellTypes::RegularHeal:
|
||||
case BotSpellTypes::CompleteHeal:
|
||||
@@ -2879,7 +2879,7 @@ bool BOT_SPELL_TYPES_BENEFICIAL(uint16 spellType, uint8 cls) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BOT_SPELL_TYPES_OTHER_BENEFICIAL(uint16 spellType) {
|
||||
bool IsBotSpellTypeOtherBeneficial(uint16 spellType) {
|
||||
switch (spellType) {
|
||||
case BotSpellTypes::RegularHeal:
|
||||
case BotSpellTypes::CompleteHeal:
|
||||
@@ -2922,7 +2922,7 @@ bool BOT_SPELL_TYPES_OTHER_BENEFICIAL(uint16 spellType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BOT_SPELL_TYPES_INNATE(uint16 spellType) {
|
||||
bool IsBotSpellTypeInnate(uint16 spellType) {
|
||||
switch (spellType) {
|
||||
case BotSpellTypes::AENukes:
|
||||
case BotSpellTypes::AERains:
|
||||
@@ -2955,7 +2955,7 @@ bool BOT_SPELL_TYPES_INNATE(uint16 spellType) {
|
||||
}
|
||||
|
||||
bool IsBotSpellType(uint16 spellType) {
|
||||
if (BOT_SPELL_TYPES_DETRIMENTAL(spellType) && BOT_SPELL_TYPES_BENEFICIAL(spellType) && BOT_SPELL_TYPES_INNATE(spellType)) {
|
||||
if (IsBotSpellTypeDetrimental(spellType) && IsBotSpellTypeBeneficial(spellType) && IsBotSpellTypeInnate(spellType)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -736,10 +736,10 @@ const uint32 SPELL_TYPES_DETRIMENTAL = (SpellType_Nuke | SpellType_Root | SpellT
|
||||
const uint32 SPELL_TYPES_BENEFICIAL = (SpellType_Heal | SpellType_Buff | SpellType_Escape | SpellType_Pet | SpellType_InCombatBuff | SpellType_Cure | SpellType_HateRedux | SpellType_InCombatBuffSong | SpellType_OutOfCombatBuffSong | SpellType_PreCombatBuff | SpellType_PreCombatBuffSong);
|
||||
const uint32 SPELL_TYPES_INNATE = (SpellType_Nuke | SpellType_Lifetap | SpellType_DOT | SpellType_Dispel | SpellType_Mez | SpellType_Slow | SpellType_Debuff | SpellType_Charm | SpellType_Root);
|
||||
|
||||
bool BOT_SPELL_TYPES_DETRIMENTAL (uint16 spellType, uint8 cls = 0);
|
||||
bool BOT_SPELL_TYPES_BENEFICIAL (uint16 spellType, uint8 cls = 0);
|
||||
bool BOT_SPELL_TYPES_OTHER_BENEFICIAL(uint16 spellType);
|
||||
bool BOT_SPELL_TYPES_INNATE (uint16 spellType);
|
||||
bool IsBotSpellTypeDetrimental (uint16 spellType, uint8 cls = 0);
|
||||
bool IsBotSpellTypeBeneficial (uint16 spellType, uint8 cls = 0);
|
||||
bool IsBotSpellTypeOtherBeneficial(uint16 spellType);
|
||||
bool IsBotSpellTypeInnate (uint16 spellType);
|
||||
bool IsBotSpellType (uint16 spellType);
|
||||
bool IsAEBotSpellType(uint16 spellType);
|
||||
bool IsGroupBotSpellType(uint16 spellType);
|
||||
|
||||
Reference in New Issue
Block a user