mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7752] Correctly restore autocast state for spells at spell loading.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
4561dec27e
commit
53967893be
2 changed files with 7 additions and 1 deletions
|
|
@ -1278,6 +1278,12 @@ bool Pet::addSpell(uint32 spell_id, uint16 active, PetSpellState state, PetSpell
|
||||||
{
|
{
|
||||||
// can be in case spell loading but learned at some previous spell loading
|
// can be in case spell loading but learned at some previous spell loading
|
||||||
itr->second->state = PETSPELL_UNCHANGED;
|
itr->second->state = PETSPELL_UNCHANGED;
|
||||||
|
|
||||||
|
if(active == ACT_ENABLED)
|
||||||
|
ToggleAutocast(spell_id, true);
|
||||||
|
else if(active == ACT_DISABLED)
|
||||||
|
ToggleAutocast(spell_id, false);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7751"
|
#define REVISION_NR "7752"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue