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
@@ -325,12 +325,14 @@ class spell_warl_soulshatter : public SpellScriptLoader
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
if (target->CanHaveThreatList() && target->getThreatManager().getThreat(caster) > 0.0f)
|
||||
{
|
||||
sLog->outString("THREATREDUCTION");
|
||||
caster->CastSpell(target, SPELL_SOULSHATTER, true);
|
||||
} else
|
||||
sLog->outString("can have threat? %b . threat number? %f ",target->CanHaveThreatList(),target->getThreatManager().getThreat(caster));
|
||||
sLog->outString("can have threat? %u . threat number? %f ",target->CanHaveThreatList(),target->getThreatManager().getThreat(caster));
|
||||
}
|
||||
}
|
||||
|
||||
void Register()
|
||||
|
||||
Reference in new issue
Block a user