mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Update for CMaNGOS Classic PowerType Core change
Signed-off-by: Salja <salja8840@gmail.com>
This commit is contained in:
@@ -569,13 +569,8 @@ namespace LuaUnit
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CMANGOS
|
#ifdef CMANGOS
|
||||||
#if (defined(WOTLK) || defined(TBC))
|
|
||||||
if (powerType == -1)
|
if (powerType == -1)
|
||||||
return unit->GetPowerType();
|
return unit->GetPowerType();
|
||||||
#else
|
|
||||||
if (powerType == -1)
|
|
||||||
return unit->getPowerType();
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (powerType < 0 || powerType >= int(MAX_POWERS))
|
if (powerType < 0 || powerType >= int(MAX_POWERS))
|
||||||
@@ -629,11 +624,7 @@ namespace LuaUnit
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CMANGOS
|
#ifdef CMANGOS
|
||||||
#if (defined(WOTLK) || defined(TBC))
|
|
||||||
Eluna::Push(L, unit->GetPowerType());
|
Eluna::Push(L, unit->GetPowerType());
|
||||||
#else
|
|
||||||
Eluna::Push(L, unit->getPowerType());
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -958,11 +949,7 @@ namespace LuaUnit
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CMANGOS
|
#ifdef CMANGOS
|
||||||
#if (defined(WOTLK) || defined(TBC))
|
|
||||||
unit->SetPowerType((Powers)type);
|
unit->SetPowerType((Powers)type);
|
||||||
#else
|
|
||||||
unit->setPowerType((Powers)type);
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user