Core/Units: ported power type updates from master branch
This commit is contained in:
1 parent
e67167e8cf
commit
b653f2f819
40 files changed
+259
-278
No files matched your search
@@ -2144,14 +2144,6 @@ TempSummon* Map::SummonCreature(uint32 entry, Position const& pos, SummonPropert
|
||||
summon->SetHealth(health);
|
||||
}
|
||||
|
||||
// Initialize guardian stats
|
||||
if (summon->HasUnitTypeMask(UNIT_MASK_GUARDIAN) && summoner)
|
||||
{
|
||||
((Guardian*)summon)->UpdateAllStats();
|
||||
summon->SetPower(POWER_MANA, summon->GetMaxPower(POWER_MANA));
|
||||
summon->SetFullHealth();
|
||||
}
|
||||
|
||||
AddToMap(summon->ToCreature());
|
||||
summon->InitSummon();
|
||||
|
||||
|
||||
Reference in new issue
Block a user