It is currently 12 Nov 2025, 00:33
   
Text Size

Agadeem Ocultist. CPU players don't use the ability.

Moderator: CCGHQ Admins

Agadeem Ocultist. CPU players don't use the ability.

Postby alexandreonly » 12 Sep 2012, 04:07

I just don't know why. Here is the code:

Code: Select all
<?xml version='1.0'?>
<CARD_V2>
  <FILENAME text="AGADEEM_OCCULTIST_198402" />
  <CARDNAME text="AGADEEM_OCCULTIST" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Agadeem Occultist]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="198402" />
  <ARTID value="198402" />
  <ARTIST name="Vance Kovacs" />
  <CASTING_COST cost="{2}{B}" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Human" order_de-DE="0" order_es-ES="2" order_fr-FR="0" order_it-IT="2" order_jp-JA="0" order_ko-KR="0" order_pt-BR="0" order_ru-RU="0" />
  <SUB_TYPE metaname="Shaman" order_de-DE="1" order_es-ES="1" order_fr-FR="1" order_it-IT="1" order_jp-JA="1" order_ko-KR="1" order_pt-BR="1" order_ru-RU="1" />
  <SUB_TYPE metaname="Ally" order_de-DE="2" order_es-ES="0" order_fr-FR="2" order_it-IT="0" order_jp-JA="2" order_ko-KR="2" order_pt-BR="2" order_ru-RU="2" />
  <EXPANSION value="DPG" />
  <RARITY metaname="R" />
  <POWER value="0" />
  <TOUGHNESS value="2" />
  <ACTIVATED_ABILITY filter_zone="ZONE_IN_PLAY">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{T}: Put target creature card from an opponent’s graveyard onto the battlefield under your control if its converted mana cost is less than or equal to the number of Allies you control.]]></LOCALISED_TEXT>
    <COST type="TapSelf" />
   <TARGET_DEFINITION id="0">
    local max_afford = 0
    local filter = Object():GetFilter()
    filter:Clear()
   filter:SetZone( ZONE_IN_PLAY )
    filter:AddSubType( CREATURE_TYPE_ALLY )
   filter:SetController( EffectController() )
    filter:NotTargetted()
   max_afford = (filter:Count())
    filter:Clear()
    filter:AddCardType( CARD_TYPE_CREATURE )
    filter:SetConvertedCostMax( max_afford )
    filter:SetZone( ZONE_GRAVEYARD )
    filter:SetControllersTeam( EffectController():GetTeam() )
    filter:AddExtra( FILTER_EXTRA_FLIP_TEAM )
    filter:SetHint( HINT_ENEMY_ONLY, EffectController() )
    </TARGET_DEFINITION>
   <TARGET_DETERMINATION>
    return AtLeastOneTargetFromDefinition(0)
    </TARGET_DETERMINATION>
   <PLAY_TIME_ACTION target_choosing="1">
    EffectController():ChooseTarget( 0, "CARD_QUERY_CHOOSE_CARD_TO_PUT_ONTO_BATTLEFIELD", EffectDC():Make_Targets(0) )
    </PLAY_TIME_ACTION>
   <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil and target:GetZone() == ZONE_GRAVEYARD then
   EffectDC():Set_PlayerPtr( 0, target:GetOwner() )
   target:PutIntoPlay( EffectController() )
    end
    </RESOLUTION_TIME_ACTION>
  </ACTIVATED_ABILITY>
  <SFX text="COMBAT_PESTS_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
  <SFX text="COMBAT_PESTS_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
 </CARD_V2>
alexandreonly
 
Posts: 145
Joined: 04 Jul 2011, 17:27
Has thanked: 0 time
Been thanked: 8 times

Re: Agadeem Ocultist. CPU players don't use the ability.

Postby nabeshin » 13 Sep 2012, 21:43

try add something similar:
Code: Select all
    <AI_AVAILABILITY type="in_response" />
    <AI_AVAILABILITY step="begin_combat" turn="their_turn" />
    <AI_AVAILABILITY step="main_1" turn="my_turn" />
    <AI_AVAILABILITY step="declare_attackers" turn="their_turn" />
    <AI_AVAILABILITY step="declare_blockers" />
    <AI_AVAILABILITY step="end_of_turn" />
    <AI_AVAILABILITY step="declare_blockers" />
  </ACTIVATED_ABILITY>
User avatar
nabeshin
 
Posts: 207
Joined: 27 Jun 2011, 20:07
Has thanked: 5 times
Been thanked: 31 times

Re: Agadeem Ocultist. CPU players don't use the ability.

Postby alexandreonly » 14 Sep 2012, 03:48

nabeshin wrote:try add something similar:
Code: Select all
    <AI_AVAILABILITY type="in_response" />
    <AI_AVAILABILITY step="begin_combat" turn="their_turn" />
    <AI_AVAILABILITY step="main_1" turn="my_turn" />
    <AI_AVAILABILITY step="declare_attackers" turn="their_turn" />
    <AI_AVAILABILITY step="declare_blockers" />
    <AI_AVAILABILITY step="end_of_turn" />
    <AI_AVAILABILITY step="declare_blockers" />
  </ACTIVATED_ABILITY>
Added. AI still don't use the ability, but the ability work fine for me. It's strange.
alexandreonly
 
Posts: 145
Joined: 04 Jul 2011, 17:27
Has thanked: 0 time
Been thanked: 8 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 4 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 4 guests

Login Form