View Single Post
  #1  
Old 07-06-2010, 10:56 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default COMMITTED: SE_ApplyEffect

Very similiar to the other 2 casting effects, this effect also casts a series a spells on your target, however it is not dependant on a buff and there are no limits on which effects land(all seem to have 100% proc rates).

Summer's Viridity and Talisman of Unity

Code...

spell_effects.cpp - line 2815 - add this
Code:
case SE_ApplyEffect:
spells.cpp - line 3849 - add this
Code:
TryApplyEffect(spelltar, spell_id);
mob.h - line 782 - add this
Code:
void TryApplyEffect(Mob *target, uint32 spell_id);
mob.cpp - line 3075 - add this
Code:
void Mob::TryApplyEffect(Mob *target, uint32 spell_id)
{
	if(target == NULL || !IsValidSpell(spell_id))
	{
		return;
	}

	for(int i = 0; i < EFFECT_COUNT; i++)
	{
		if (spells[spell_id].effectid[i] == SE_ApplyEffect)
		{
			if(MakeRandomInt(0, 100) <= spells[spell_id].base[i]) 
			{
				SpellOnTarget(spells[spell_id].base2[i], target);
			}
		}
	}
}
Reply With Quote