mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-06 12:27:48 +00:00
fix(Core/Guardian): Crashfix. (#11659)
This commit is contained in:
@@ -392,11 +392,13 @@ void Guardian::InitStats(uint32 duration)
|
|||||||
{
|
{
|
||||||
Minion::InitStats(duration);
|
Minion::InitStats(duration);
|
||||||
|
|
||||||
Unit* m_owner = GetOwner();
|
if (Unit* m_owner = GetOwner())
|
||||||
InitStatsForLevel(m_owner->getLevel());
|
{
|
||||||
|
InitStatsForLevel(m_owner->getLevel());
|
||||||
|
|
||||||
if (m_owner->GetTypeId() == TYPEID_PLAYER && HasUnitTypeMask(UNIT_MASK_CONTROLABLE_GUARDIAN))
|
if (m_owner->GetTypeId() == TYPEID_PLAYER && HasUnitTypeMask(UNIT_MASK_CONTROLABLE_GUARDIAN))
|
||||||
m_charmInfo->InitCharmCreateSpells();
|
m_charmInfo->InitCharmCreateSpells();
|
||||||
|
}
|
||||||
|
|
||||||
SetReactState(REACT_AGGRESSIVE);
|
SetReactState(REACT_AGGRESSIVE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user