Example #1
0
        public static void RefreshCharacterAbility(ICharacter character, IMap map, PacketHitList hitlist)
        {
            PacketHitList.MethodStart(ref hitlist);
            //abilites
            ExtraStatus status;
            character.CalculateOriginalAbility();

            status = character.VolatileStatus.GetStatus("Ability1");
            if (status != null) {
                character.Ability1 = status.Tag;
            }
            status = character.VolatileStatus.GetStatus("Ability2");
            if (status != null) {
                character.Ability2 = status.Tag;
            }
            status = character.VolatileStatus.GetStatus("Ability3");
            if (status != null) {
                character.Ability3 = status.Tag;
            }

            if (character.VolatileStatus.GetStatus("GastroAcid") != null) {
                character.Ability1 = "None";
                character.Ability2 = "None";
                character.Ability3 = "None";
            }
            PacketHitList.MethodEnded(ref hitlist);
        }