mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Misc:
- Changed some error messages for changing spec to be displayed as debug messages. - Fixed compile warnings.
This commit is contained in:
@@ -827,7 +827,7 @@ class npc_hodir_mage : public CreatureScript
|
||||
switch (eventId)
|
||||
{
|
||||
case EVENT_CONJURE_FIRE:
|
||||
if (summons.size() >= RAID_MODE(2, 4))
|
||||
if (summons.size() >= RAID_MODE<uint64>(2, 4))
|
||||
break;
|
||||
DoCast(me, SPELL_CONJURE_FIRE, true);
|
||||
events.ScheduleEvent(EVENT_CONJURE_FIRE, urand(15000, 20000));
|
||||
|
||||
@@ -810,7 +810,7 @@ class spell_xt002_gravity_bomb_aura : public SpellScriptLoader
|
||||
if (!owner)
|
||||
return;
|
||||
|
||||
if (aurEff->GetAmount() >= owner->GetHealth())
|
||||
if (aurEff->GetAmount() >= int32(owner->GetHealth()))
|
||||
if (XT002AI* xt002AI = CAST_AI(XT002AI, xt002->GetAI()))
|
||||
xt002AI->GravityBombCasualty = true;
|
||||
}
|
||||
@@ -843,7 +843,7 @@ class spell_xt002_gravity_bomb_damage : public SpellScriptLoader
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
if (GetHitDamage() >= GetHitUnit()->GetHealth())
|
||||
if (GetHitDamage() >= int32(GetHitUnit()->GetHealth()))
|
||||
if (XT002AI* xt002AI = CAST_AI(XT002AI, GetCaster()->GetAI()))
|
||||
xt002AI->GravityBombCasualty = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user