- Changecontroller now sends a changezone event
- Manacost bug fix (memory leak)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-06-21 10:46:33 +00:00
parent dfdc61e9db
commit 61e449d02b
6 changed files with 9 additions and 9 deletions
+3 -1
View File
@@ -1546,7 +1546,9 @@ class AControlStealAura: public MTGAbility{
Player * originalController;
AControlStealAura(int _id , MTGCardInstance * _source, MTGCardInstance * _target):MTGAbility(_id, _source, _target){
originalController = _target->controller();
_target->changeController(game->currentlyActing());
MTGCardInstance * copy = _target->changeController(game->currentlyActing());
target = copy;
source->target = copy;
}
int destroy(){
+1 -1
View File
@@ -48,7 +48,7 @@ class MTGCardInstance: public MTGCard, public Damageable, public Targetable {
int summoningSickness;
// The recommended method to test for summoning Sickness !
int hasSummoningSickness();
int changeController(Player * newcontroller);
MTGCardInstance * changeController(Player * newcontroller);
MTGCardInstance * defenser;
float changedZoneRecently;
Player * owner;