mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[7467] Use SpellCastResult and replace CanCast by CheckCast.
Note: proper way to check: if(spell->CheckCast(...)==SPELL_CAST_OK)
This commit is contained in:
parent
c1b0e7d57a
commit
0e987bf59e
6 changed files with 75 additions and 76 deletions
|
|
@ -294,7 +294,7 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
|
|||
AIM_Initialize();
|
||||
map->Add((Creature*)this);
|
||||
|
||||
// Spells should be loaded after pet is added to map, because in CanCast is check on it
|
||||
// Spells should be loaded after pet is added to map, because in CheckCast is check on it
|
||||
_LoadSpells();
|
||||
_LoadSpellCooldowns();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue