Example #1
0
		void HandleEffectDummy(SpellEffIndex /*effIndex*/)
		{
			Unit* caster = GetCaster();
			Position destPos;
			GetHitDest()->GetPosition(&destPos);

			// Body and soul
			if (AuraEffect* bodyAndSoul = caster->GetDummyAuraEffect(SPELLFAMILY_PRIEST, 2218, EFFECT_0))
			{
				switch (bodyAndSoul->GetAmount())
				{
				case 30:
					caster->CastSpell(GetHitUnit(), 64128, true);
					break;
				case 60:
					caster->CastSpell(GetHitUnit(), 65081, true);
					break;
				}
			}

			SpellCastTargets targets;
			targets.SetDst(destPos);
			targets.SetUnitTarget(caster);
			GetHitUnit()->CastSpell(targets, sSpellMgr->GetSpellInfo(GetEffectValue()), NULL);
		}
Example #2
0
            void HandleEffectDummy(SpellEffIndex /*effIndex*/)
            {
                Position destPos = GetHitDest()->GetPosition();

                SpellCastTargets targets;
                targets.SetDst(destPos);
                targets.SetUnitTarget(GetCaster());
                GetHitUnit()->CastSpell(targets, sSpellMgr->GetSpellInfo(GetEffectValue()), NULL);
            }