public override void Detach() { base.Detach(); if (soldier.GetFlag(SoldierAttributeFlags.BanSkill)) { soldier.RemoveFlag(SoldierAttributeFlags.BanSkill); } soldier.skillHandler.SetHandlerEnabled(true); }
public override void Detach() { base.Detach(); DebugUtils.Log(DebugUtils.Type.AI_AttributeEffect, string.Format(" {0} {1} has been detached", type, attributeAffectType)); if (soldier.GetFlag(SoldierAttributeFlags.BanSkill)) { soldier.RemoveFlag(SoldierAttributeFlags.BanSkill); } soldier.skillHandler.SetHandlerEnabled(true); if (soldier.GetFlag(SoldierAttributeFlags.BanCommand)) { soldier.RemoveFlag(SoldierAttributeFlags.BanCommand); } soldier.target = null; soldier.ChangeState(1, soldier.fsmIdle); ownerDebuff.sneerEffect = null; }