//:///////////////////////////////////////////////////////////////////////////// /* swm_bloodfly_ext.nss [Jaysyn / 20221230] Bloodflies bite and seek to draw blood from their targets. A bloodfly swarm deals 1d6 damage to any creature whose space it occupies at the end of its move. Blood Drain (Ex): Each creature that begins its turn with a bloodfly swarm in its space suffers 1 points of Constitution damage from blood loss as the mini-kanks feed (Reflex DC 17 half). The save DC is Dexterity-based and includes a +2 racial bonus. Distraction (Ex): Any living creature that begins its turns with a bloodfly swarm in its space must succeed on a DC 12 Fortitude save or be nauseated for 1 round. The save DC is Constitution-based. */ //:///////////////////////////////////////////////////////////////////////////// #include "nw_i0_spells" void main() { //:: Declare major variables object oTarget = GetExitingObject(); //:: Get the object that is exiting the AOE effect eEffect = GetFirstEffect(oTarget); //:: Search through the valid effects on the target. while(GetIsEffectValid(eEffect)) { //:: Remove Swarm effects by EffectTag if(GetEffectTag(eEffect) == "BloodflyDistraction") { RemoveEffect(oTarget, eEffect); } eEffect = GetNextEffect(oTarget); } }