// is creature hostile
if (IsObjectHostile(stEvent.oCaster, oTarget) == TRUE)
{
// remove stacking effects
RemoveStackingEffects(oTarget, stEvent.oCaster, stEvent.nAbility);
float fDuration = 3.0;
eEffect = EffectStun();
ApplyEffectOnObject(EFFECT_DURATION_TYPE_TEMPORARY, eEffect, oTarget, fDuration, stEvent.oCaster, stEvent.nAbility);
}
it works for the first time the player gets stunned. the second time the duration of the stun is perhaps halved, the third time it's even shorter and then it gets back to 3.0 in stun time the fourth time. i would like it to be 3 seconds all the time.
Modifié par gordonbrown82, 12 avril 2010 - 04:08 .





Retour en haut






