- fix a segfault with Shivan Gorge
- Fix a memory leak in the AI
- Commit a test for issue 265
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-22 13:11:08 +00:00
parent 4eb6850c41
commit 54142cc816
5 changed files with 36 additions and 4 deletions

View File

@@ -1926,8 +1926,8 @@ AADamager(int _id, MTGCardInstance * _source, Targetable * _target, WParsedInt *
}
int resolve(){
if(target){
Damageable * _target = (Damageable *) getTarget();
Damageable * _target = (Damageable *) getTarget();
if(_target){
game->mLayers->stackLayer()->addDamage(source,_target, damage->getValue());
game->mLayers->stackLayer()->resolve();
return 1;