stylistic change to my previous commit, has absolutely no effect on the code, just the way it looks.
This commit is contained in:
@@ -3947,14 +3947,14 @@ int ActivatedAbility::reactToTargetClick(Targetable * object)
|
|||||||
abilityCost = previousManaPool->Diff(player->getManaPool());
|
abilityCost = previousManaPool->Diff(player->getManaPool());
|
||||||
delete previousManaPool;
|
delete previousManaPool;
|
||||||
}
|
}
|
||||||
if(dynamic_cast<AManaProducer *> (this))
|
|
||||||
{
|
|
||||||
AManaProducer * amp = dynamic_cast<AManaProducer *> (this);
|
AManaProducer * amp = dynamic_cast<AManaProducer *> (this);
|
||||||
|
if(amp)
|
||||||
|
{
|
||||||
needsTapping = amp->tap;
|
needsTapping = amp->tap;
|
||||||
}
|
}
|
||||||
if (needsTapping && source->isInPlay())
|
if (needsTapping && source->isInPlay())
|
||||||
{
|
{
|
||||||
if (dynamic_cast<AManaProducer *> (this))
|
if (amp)
|
||||||
{
|
{
|
||||||
GameObserver *g = GameObserver::GetInstance();
|
GameObserver *g = GameObserver::GetInstance();
|
||||||
WEvent * e = NEW WEventCardTappedForMana(source, 0, 1);
|
WEvent * e = NEW WEventCardTappedForMana(source, 0, 1);
|
||||||
@@ -3962,7 +3962,7 @@ int ActivatedAbility::reactToTargetClick(Targetable * object)
|
|||||||
}
|
}
|
||||||
source->tap();
|
source->tap();
|
||||||
}
|
}
|
||||||
if (dynamic_cast<AManaProducer *> (this))
|
if (amp)
|
||||||
{
|
{
|
||||||
this->resolve();
|
this->resolve();
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user