Core/Misc:

- Changed some error messages for changing spec to be displayed as debug messages.
- Fixed compile warnings.
This commit is contained in:
kaelima
2011-06-11 19:05:47 +02:00
parent 5bbeccd00f
commit a73c7f506e
3 changed files with 8 additions and 8 deletions

View File

@@ -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));

View File

@@ -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;
}