Water elemental
If #Facilities > #Enemy facilities
Enemy wall = 0
Always:
Attack: #Stock - #Enemy stock
Cost (B / G / R)
0 / 19 / 0
BB code
Effect
If #Facilities > #Enemy facilities
Enemy wall = 0
Always:
Attack: #Stock - #Enemy stock
Code
$tmp = max(0, $t->myData()->Quarry + $t->myData()->Magic + $t->myData()->Dungeons
- $t->hisData()->Quarry - $t->hisData()->Magic - $t->hisData()->Dungeons);
if ($tmp > 0) {
$t->hisData()->setWall(0);
}
$tmp = max(0, $t->myData()->Bricks + $t->myData()->Gems + $t->myData()->Recruits
- $t->hisData()->Bricks - $t->hisData()->Gems - $t->hisData()->Recruits);
$t->hisData()->attack($tmp);