- Code cleanup
- fix issue 142 . This will lead to other issues for some cards. These issues can be fixed by using targetcontroller/controller...etc
- Added a few cards
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-11-21 09:40:14 +00:00
parent da9a82cff4
commit f924546dcc
16 changed files with 99 additions and 116 deletions

View File

@@ -178,10 +178,10 @@ int AIAction::getEfficiency(){
AADamager * aad = (AADamager *) a;
if ( p == target->controller()){
efficiency = 0;
}else if (aad->damage >= target->toughness){
}else if (aad->damage->getValue() >= target->toughness){
efficiency = 100;
}else if (target->toughness){
efficiency = (50 * aad->damage) / target->toughness;
efficiency = (50 * aad->damage->getValue()) / target->toughness;
}else{
efficiency = 0;
}