Warning fixes and some minor changes here and there

- Added GetAchievementPoints to AchievementMgr
This commit is contained in:
Spp committed 2012-09-18 11:35:18 +02:00
1 parent b5af7c5c2e
commit c4d4beff3b
11 files changed
+79 -104

No files matched your search

@@ -46,7 +46,7 @@ class boss_mandokir : public CreatureScript
{
}
void KilledUnit(Unit* victim)
void KilledUnit(Unit* /*victim*/)
{
}
+1 -1
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));