$bonus = false;
$target_cards = array_merge($t->getList(['advanced'=>"Summons", 'support'=>'Undead']), $t->getList(['advanced'=>'Replace ', 'support'=>'Undead']));
if (in_array($t->myData()->LastCard[$t->myLastCardIndex()], $target_cards) && $t->myLastAction() == 'play') {
$bonus = true;
}
$t->hisData()->attack(60 + (($bonus) ? 45 : 0));