#include "nw_i0_spells"

void main()
{
object oPC = GetExitingObject();
if (!GetIsPC(oPC)) return;

int nInt = GetLocalInt(oPC, "SwallowedWhole");
if (nInt == 1) return;

SetLocalInt(oPC, "UnderwaterArea", 0);
SetLocalInt(oPC, "Underwater", 0);

RemoveSpecificEffect(EFFECT_TYPE_ATTACK_DECREASE, oPC);
RemoveSpecificEffect(EFFECT_TYPE_MOVEMENT_SPEED_DECREASE, oPC);

object oHench1 = GetHenchman(oPC, 1);
object oHench2 = GetHenchman(oPC, 2);
object oHench3 = GetHenchman(oPC, 3);
object oHench4 = GetHenchman(oPC, 4);

RemoveSpecificEffect(EFFECT_TYPE_ATTACK_DECREASE, oHench1);
RemoveSpecificEffect(EFFECT_TYPE_MOVEMENT_SPEED_DECREASE, oHench1);
RemoveSpecificEffect(EFFECT_TYPE_ATTACK_DECREASE, oHench2);
RemoveSpecificEffect(EFFECT_TYPE_MOVEMENT_SPEED_DECREASE, oHench2);
RemoveSpecificEffect(EFFECT_TYPE_ATTACK_DECREASE, oHench3);
RemoveSpecificEffect(EFFECT_TYPE_MOVEMENT_SPEED_DECREASE, oHench3);
RemoveSpecificEffect(EFFECT_TYPE_ATTACK_DECREASE, oHench4);
RemoveSpecificEffect(EFFECT_TYPE_MOVEMENT_SPEED_DECREASE, oHench4);

}

