Core/Battleground: fixed typo

* and fixed some warnings
This commit is contained in:
joschiwald committed 2014-07-14 20:12:39 +02:00
1 parent 70c82a385f
commit 14bbe3e2e9
8 files changed
+16 -18

No files matched your search

+1 -1
View File
@@ -12961,7 +12961,7 @@ float Unit::ApplyDiminishingToDuration(DiminishingGroup group, int32 &duration,
Unit const* source = casterOwner ? casterOwner : caster;
if ((target->GetTypeId() == TYPEID_PLAYER
|| ((Creature*)target)->GetCreatureTemplate()->flags_extra & CREATURE_FLAG_EXTRA_ALL_DIMINISH)
|| target->ToCreature()->GetCreatureTemplate()->flags_extra & CREATURE_FLAG_EXTRA_ALL_DIMINISH)
&& source->GetTypeId() == TYPEID_PLAYER)
duration = limitduration;
}