Warning fixes and some minor changes here and there

- Added GetAchievementPoints to AchievementMgr
This commit is contained in:
Spp
2012-09-18 11:33:09 +02:00
parent b5af7c5c2e
commit c4d4beff3b
11 changed files with 79 additions and 104 deletions

View File

@@ -46,7 +46,7 @@ class boss_mandokir : public CreatureScript
{
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
}

View File

@@ -222,7 +222,7 @@ class spell_warr_execute : public SpellScriptLoader
void HandleEffect(SpellEffIndex /*effIndex*/)
{
Unit* caster = GetCaster();
if (Unit* target = GetHitUnit())
if (GetHitUnit())
{
SpellInfo const* spellInfo = GetSpellInfo();
int32 rageUsed = std::min<int32>(200 - spellInfo->CalcPowerCost(caster, SpellSchoolMask(spellInfo->SchoolMask)), caster->GetPower(POWER_RAGE));