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
@@ -1203,7 +1203,7 @@ class spell_item_heartpierce : public SpellScriptLoader
|
||||
Unit* caster = eventInfo.GetActor();
|
||||
|
||||
uint32 spellId;
|
||||
switch (caster->getPowerType())
|
||||
switch (caster->GetPowerType())
|
||||
{
|
||||
case POWER_MANA:
|
||||
spellId = Mana;
|
||||
@@ -4253,7 +4253,7 @@ public:
|
||||
|
||||
Unit* target = GetCaster();
|
||||
|
||||
if (target->getPowerType() == POWER_MANA)
|
||||
if (target->GetPowerType() == POWER_MANA)
|
||||
availableElixirs.push_back(28509); // Elixir of Major Mageblood (22840)
|
||||
|
||||
uint32 chosenElixir = Trinity::Containers::SelectRandomContainerElement(availableElixirs);
|
||||
@@ -4328,7 +4328,7 @@ public:
|
||||
|
||||
if (!target->IsInCombat())
|
||||
availableElixirs.push_back(53753); // Potion of Nightmares (40081)
|
||||
if (target->getPowerType() == POWER_MANA)
|
||||
if (target->GetPowerType() == POWER_MANA)
|
||||
availableElixirs.push_back(43186); // Runic Mana Potion(33448)
|
||||
|
||||
uint32 chosenElixir = Trinity::Containers::SelectRandomContainerElement(availableElixirs);
|
||||
|
||||
Reference in new issue
Block a user