Core/Spells: Removed implicit casts from SpellImplicitTargetInfo, fixed copypaste mistakes and one crash

This commit is contained in:
Shauren committed 2011-07-27 12:35:59 +02:00
1 parent b2a84d9f1e
commit b9a6e2333c
13 files changed
+110 -105

No files matched your search

@@ -1608,7 +1608,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
bool self = false;
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
if (spellInfo->Effects[i].TargetA == TARGET_UNIT_CASTER)
if (spellInfo->Effects[i].TargetA.GetTarget() == TARGET_UNIT_CASTER)
{
self = true;
break;