Doesn't GetHasSpellEffect only return true if the target actually is under the effects of the specified spell?
int StartingConditional()
{
object oPC = GetPCSpeaker();
effect eEff = GetFirstEffect(oPC);
while (GetIsEffectValid(eEff))
{
if (GetEffectType(eEff) == EFFECT_TYPE_DAZED) {return TRUE;}
eEff = GetNextEffect(oPC);
}
return FALSE;
}
This should work, no matter what the source of the daze is.
Modifié par Xardex, 25 octobre 2011 - 02:56 .