minor refactor

This commit is contained in:
Anthony Calosa
2017-01-26 21:01:45 +08:00
parent e239dc039b
commit 4f7901b946
2 changed files with 15 additions and 10 deletions
+6 -2
View File
@@ -809,14 +809,18 @@ void MTGCardInstance::switchPT(bool apply)
int MTGCardInstance::getCurrentPower()
{
if(!isInPlay(observer))
if(observer && !isCreature())
return 0;
if(observer && !isInPlay(observer))
return LKIpower;
return power;
}
int MTGCardInstance::getCurrentToughness()
{
if(!isInPlay(observer))
if(observer && !isCreature())
return 0;
if(observer && !isInPlay(observer))
return LKItoughness;
return toughness;
}