Fix build (gcc) and fix warnings
This commit is contained in:
1 parent
6870ee5848
commit
1e246cb66c
12 files changed
+44
-19
No files matched your search
@@ -736,6 +736,7 @@ class spell_dk_death_coil : public SpellScriptLoader
|
||||
int32 damage = GetEffectValue();
|
||||
Unit* caster = GetCaster();
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
if (caster->IsFriendlyTo(target))
|
||||
{
|
||||
int32 bp = int32(damage * 1.5f);
|
||||
@@ -743,6 +744,7 @@ class spell_dk_death_coil : public SpellScriptLoader
|
||||
}
|
||||
else
|
||||
caster->CastCustomSpell(target, SPELL_DEATH_COIL_DAMAGE, &damage, NULL, NULL, true);
|
||||
}
|
||||
}
|
||||
|
||||
void Register()
|
||||
@@ -770,9 +772,7 @@ class spell_dk_death_grip : public SpellScriptLoader
|
||||
void HandleDummy(SpellEffIndex effIndex)
|
||||
{
|
||||
int32 damage = GetEffectValue();
|
||||
Spell* baseSpell = GetSpell();
|
||||
Position pos;
|
||||
Unit* caster = GetCaster();
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
GetSummonPosition(effIndex, pos, 0.0f, 0);
|
||||
|
||||
Reference in new issue
Block a user