mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-28 20:07:56 +00:00
cls cleanup
This commit is contained in:
+2
-3
@@ -9661,7 +9661,6 @@ bool Bot::CanCastSpellType(uint16 spellType, uint16 spell_id, Mob* tar) {
|
||||
}
|
||||
|
||||
uint8 botClass = GetClass();
|
||||
//uint8 botLevel = GetLevel();
|
||||
|
||||
switch (spellType) {
|
||||
case BotSpellTypes::Buff:
|
||||
@@ -10484,7 +10483,7 @@ uint16 Bot::GetDefaultSpellTypePriority(uint16 spellType, uint8 priorityType, ui
|
||||
}
|
||||
|
||||
uint16 Bot::GetDefaultSpellTypeIdlePriority(uint16 spellType, uint8 botClass, uint8 stance) {
|
||||
if (!IsBotSpellTypeBeneficial(spellType, botClass)) {
|
||||
if (!IsBotSpellTypeBeneficial(spellType)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -10746,7 +10745,7 @@ uint16 Bot::GetDefaultSpellTypePursuePriority(uint16 spellType, uint8 botClass,
|
||||
|
||||
uint16 Bot::GetDefaultSpellTypeResistLimit(uint16 spellType, uint8 stance) {
|
||||
|
||||
if (!IsBotSpellTypeBeneficial(spellType, GetClass())) {
|
||||
if (!IsBotSpellTypeBeneficial(spellType)) {
|
||||
return RuleI(Bots, SpellResistLimit);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -63,7 +63,7 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint16 spellType, uint16 subTarge
|
||||
botSpell.SpellIndex = 0;
|
||||
botSpell.ManaCost = 0;
|
||||
|
||||
if (SpellTypeRequiresLoS(spellType, botClass) && tar != this) {
|
||||
if (SpellTypeRequiresLoS(spellType) && tar != this) {
|
||||
SetHasLoS(DoLosChecks(this, tar));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user