mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
DB/Pets: Removed invalid spells from creature_template_spell
Closes #29149
This commit is contained in:
1
sql/updates/world/master/2023_08_16_01_world.sql
Normal file
1
sql/updates/world/master/2023_08_16_01_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
DELETE FROM `creature_template_spell` WHERE `Spell` IN (1,3,4,7);
|
||||
@@ -3194,7 +3194,7 @@ float Creature::GetPetChaseDistance() const
|
||||
|
||||
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellID, GetMap()->GetDifficultyID()))
|
||||
{
|
||||
if (spellInfo->GetRecoveryTime() == 0 && spellInfo->RangeEntry->ID != 1 /*Self*/ && spellInfo->RangeEntry->ID != 2 /*Combat Range*/ && spellInfo->GetMaxRange() > range)
|
||||
if (spellInfo->GetRecoveryTime() == 0 && spellInfo->RangeEntry && spellInfo->RangeEntry->ID != 1 /*Self*/ && spellInfo->RangeEntry->ID != 2 /*Combat Range*/ && spellInfo->GetMaxRange() > range)
|
||||
range = spellInfo->GetMaxRange();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user