Core/Misc:
- Changed some error messages for changing spec to be displayed as debug messages. - Fixed compile warnings.
This commit is contained in:
@@ -6622,13 +6622,13 @@ bool Player::IsActionButtonDataValid(uint8 button, uint32 action, uint8 type)
|
|||||||
{
|
{
|
||||||
if (button >= MAX_ACTION_BUTTONS)
|
if (button >= MAX_ACTION_BUTTONS)
|
||||||
{
|
{
|
||||||
sLog->outError( "Action %u not added into button %u for player %s: button must be < %u", action, button, GetName(), MAX_ACTION_BUTTONS );
|
sLog->outDebug("Action %u not added into button %u for player %s: button must be < %u", action, button, GetName(), MAX_ACTION_BUTTONS);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action >= MAX_ACTION_BUTTON_ACTION_VALUE)
|
if (action >= MAX_ACTION_BUTTON_ACTION_VALUE)
|
||||||
{
|
{
|
||||||
sLog->outError( "Action %u not added into button %u for player %s: action must be < %u", action, button, GetName(), MAX_ACTION_BUTTON_ACTION_VALUE );
|
sLog->outDebug("Action %u not added into button %u for player %s: action must be < %u", action, button, GetName(), MAX_ACTION_BUTTON_ACTION_VALUE);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6637,20 +6637,20 @@ bool Player::IsActionButtonDataValid(uint8 button, uint32 action, uint8 type)
|
|||||||
case ACTION_BUTTON_SPELL:
|
case ACTION_BUTTON_SPELL:
|
||||||
if (!sSpellStore.LookupEntry(action))
|
if (!sSpellStore.LookupEntry(action))
|
||||||
{
|
{
|
||||||
sLog->outError( "Spell action %u not added into button %u for player %s: spell not exist", action, button, GetName() );
|
sLog->outError("Spell action %u not added into button %u for player %s: spell not exist", action, button, GetName());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!HasSpell(action))
|
if (!HasSpell(action))
|
||||||
{
|
{
|
||||||
sLog->outError( "Spell action %u not added into button %u for player %s: player don't known this spell", action, button, GetName() );
|
sLog->outDebug("Spell action %u not added into button %u for player %s: player don't known this spell", action, button, GetName());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ACTION_BUTTON_ITEM:
|
case ACTION_BUTTON_ITEM:
|
||||||
if (!sObjectMgr->GetItemTemplate(action))
|
if (!sObjectMgr->GetItemTemplate(action))
|
||||||
{
|
{
|
||||||
sLog->outError( "Item action %u not added into button %u for player %s: item not exist", action, button, GetName() );
|
sLog->outError("Item action %u not added into button %u for player %s: item not exist", action, button, GetName());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -827,7 +827,7 @@ class npc_hodir_mage : public CreatureScript
|
|||||||
switch (eventId)
|
switch (eventId)
|
||||||
{
|
{
|
||||||
case EVENT_CONJURE_FIRE:
|
case EVENT_CONJURE_FIRE:
|
||||||
if (summons.size() >= RAID_MODE(2, 4))
|
if (summons.size() >= RAID_MODE<uint64>(2, 4))
|
||||||
break;
|
break;
|
||||||
DoCast(me, SPELL_CONJURE_FIRE, true);
|
DoCast(me, SPELL_CONJURE_FIRE, true);
|
||||||
events.ScheduleEvent(EVENT_CONJURE_FIRE, urand(15000, 20000));
|
events.ScheduleEvent(EVENT_CONJURE_FIRE, urand(15000, 20000));
|
||||||
|
|||||||
@@ -810,7 +810,7 @@ class spell_xt002_gravity_bomb_aura : public SpellScriptLoader
|
|||||||
if (!owner)
|
if (!owner)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (aurEff->GetAmount() >= owner->GetHealth())
|
if (aurEff->GetAmount() >= int32(owner->GetHealth()))
|
||||||
if (XT002AI* xt002AI = CAST_AI(XT002AI, xt002->GetAI()))
|
if (XT002AI* xt002AI = CAST_AI(XT002AI, xt002->GetAI()))
|
||||||
xt002AI->GravityBombCasualty = true;
|
xt002AI->GravityBombCasualty = true;
|
||||||
}
|
}
|
||||||
@@ -843,7 +843,7 @@ class spell_xt002_gravity_bomb_damage : public SpellScriptLoader
|
|||||||
if (!caster)
|
if (!caster)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (GetHitDamage() >= GetHitUnit()->GetHealth())
|
if (GetHitDamage() >= int32(GetHitUnit()->GetHealth()))
|
||||||
if (XT002AI* xt002AI = CAST_AI(XT002AI, GetCaster()->GetAI()))
|
if (XT002AI* xt002AI = CAST_AI(XT002AI, GetCaster()->GetAI()))
|
||||||
xt002AI->GravityBombCasualty = true;
|
xt002AI->GravityBombCasualty = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user