From ef7af5c63f6b1409a35eecf8cc90c4c4660dc281 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:59:17 -0600 Subject: [PATCH] Remove SpellTypeRequiresCastChecks --- common/spdat.cpp | 25 ------------------------- common/spdat.h | 1 - 2 files changed, 26 deletions(-) diff --git a/common/spdat.cpp b/common/spdat.cpp index 42e64116e..ff4a3006a 100644 --- a/common/spdat.cpp +++ b/common/spdat.cpp @@ -3116,31 +3116,6 @@ bool SpellTypeRequiresTarget(uint16 spellType, uint16 cls) { return true; } -bool SpellTypeRequiresCastChecks(uint16 spellType) { - switch (spellType) { - case BotSpellTypes::AEDebuff: - case BotSpellTypes::AEDispel: - case BotSpellTypes::AEDoT: - case BotSpellTypes::AEFear: - case BotSpellTypes::AELifetap: - case BotSpellTypes::AEMez: - case BotSpellTypes::AENukes: - case BotSpellTypes::AERains: - case BotSpellTypes::AERoot: - case BotSpellTypes::AESlow: - case BotSpellTypes::AESnare: - case BotSpellTypes::AEStun: - case BotSpellTypes::PBAENuke: - case BotSpellTypes::Mez: - case BotSpellTypes::SummonCorpse: - return false; - default: - return true; - } - - return true; -} - bool SpellTypeRequiresAEChecks(uint16 spellType) { switch (spellType) { case BotSpellTypes::AEMez: diff --git a/common/spdat.h b/common/spdat.h index 01cdf85af..7b533328b 100644 --- a/common/spdat.h +++ b/common/spdat.h @@ -748,7 +748,6 @@ bool IsClientBotSpellType(uint16 spellType); bool IsHealBotSpellType(uint16 spellType); bool SpellTypeRequiresLoS(uint16 spellType, uint16 cls = 0); bool SpellTypeRequiresTarget(uint16 spellType, uint16 cls = 0); -bool SpellTypeRequiresCastChecks(uint16 spellType); bool SpellTypeRequiresAEChecks(uint16 spellType); bool IsCommandedSpellType(uint16 spellType); bool IsPullingSpellType(uint16 spellType);