planeswalker attack

This commit is contained in:
Anthony Calosa
2017-03-01 06:36:10 +08:00
parent 22376e873e
commit 5f1874edae
9 changed files with 40 additions and 7 deletions
+7
View File
@@ -1158,7 +1158,14 @@ AADamager::AADamager(GameObserver* observer, int _id, MTGCardInstance * _source,
{
MTGCardInstance * _target = dynamic_cast<MTGCardInstance*>(target);
if(_target && _target->hasType(Subtypes::TYPE_PLANESWALKER))
{
if(d.size())
{
WParsedInt parsedNum(d, NULL, source);
return _("Deal " + parsedNum.getStringValue() + " Damage to " + _target->name).c_str();
}
return _target->name.c_str();
}
if(redirected)
{
if(d.size())