War Rock Bashileos Summon Condition Bug

  1. Bug description
    In the script for War Rock Bashileos, the condition for its Special Summon needs a War Rock to be destroyed by battle. This should be if an EARTH Warrior is destroyed by battle.

the script that I have access to from the YGOpro github is:

function c18558867.spfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsSetCard(0x15f) and c:IsType(TYPE_MONSTER)

should be

function c18558867.spfilter(c,tp)
return c:IsPreviousControler(tp) and and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_WARRIOR)

or at least something like that, the actual text of the card is

While this card is in your hand or GY, when your EARTH Warrior monster is destroyed by battle: You can Special Summon this card, but banish it when it leaves the field.

Source: Yugipedia

  1. Bug reproduction steps

War Rock Bashileos is in the hand or GY have a non-War Rock EARTH Warrior be destroyed by battle.

  1. Screenshot OR error code

  2. Expected behavior
    War Rock Bashileos’s effect should activate summoning itself from gy or hand.