$storage = array();
for ($i = 1; $i <= $t->handSize(); $i++) {
if ($i != $t->cardPos() && $t->getCard($t->myData()->Hand[$i])->hasKeyword('Titan')) {
$storage[] = $t->myData()->Hand[$i];
$t->setCard('my', $i, $t->drawCard($t->myDeck(), $t->myData()->Hand, $i, 'drawCardRandom'));
}
}
if (count($storage) > 0) {
$storage = array_unique($storage);
$discarded = count($storage);
$t->hisData()->attack(30 * $discarded);
}