﻿<?xml version="1.0" encoding="utf-16"?>
<FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <FightClassGeneralSettings>
    <FightClassName>Fight config name</FightClassName>
  </FightClassGeneralSettings>
  <FightClassSpells>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HaveTarget</ContionType>
          <Param xsi:type="FightClassConditionBool">
            <Value>true</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Shadowform</SpellName>
      <Priority>2</Priority>
      <IsBuff>true</IsBuff>
      <CombatOnly>false</CombatOnly>
    </FightClassSpell>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>HaveTarget</ContionType>
          <Param xsi:type="FightClassConditionBool" />
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>Buff</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Shadowform</Name>
            <Need>true</Need>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>for i=0,15,1 do local currBuffTex = GetPlayerBuffTexture(i); if (currBuffTex and string.find(string.lower(currBuffTex), "spell_shadow_shadowform")) then CancelPlayerBuff(i); end end</SpellName>
      <Priority>1</Priority>
      <CombatOnly>false</CombatOnly>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
    </FightClassSpell>
  </FightClassSpells>
</FightClass>