J :
* Remove warnings.
This commit is contained in:
@@ -2794,7 +2794,7 @@ class AAbomination :public MTGAbility{
|
|||||||
if( newPhase == MTG_PHASE_COMBATDAMAGE){
|
if( newPhase == MTG_PHASE_COMBATDAMAGE){
|
||||||
nbOpponents = 0;
|
nbOpponents = 0;
|
||||||
MTGCardInstance * opponent = source->getNextOpponent();
|
MTGCardInstance * opponent = source->getNextOpponent();
|
||||||
while (opponent && opponent->hasColor(MTG_COLOR_GREEN) || opponent->hasColor(MTG_COLOR_WHITE)){
|
while ((opponent && opponent->hasColor(MTG_COLOR_GREEN)) || opponent->hasColor(MTG_COLOR_WHITE)){
|
||||||
opponents[nbOpponents] = opponent;
|
opponents[nbOpponents] = opponent;
|
||||||
nbOpponents ++;
|
nbOpponents ++;
|
||||||
opponent = source->getNextOpponent(opponent);
|
opponent = source->getNextOpponent(opponent);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ int AbilityFactory::putInPlayFromZone(MTGCardInstance * card, MTGGameZone * zone
|
|||||||
|
|
||||||
|
|
||||||
Trigger * AbilityFactory::parseTrigger(string magicText){
|
Trigger * AbilityFactory::parseTrigger(string magicText){
|
||||||
int found = magicText.find("@");
|
size_t found = magicText.find("@");
|
||||||
if (found == string::npos) return NULL;
|
if (found == string::npos) return NULL;
|
||||||
|
|
||||||
//Next Time...
|
//Next Time...
|
||||||
@@ -1707,7 +1707,7 @@ int ListMaintainerAbility::destroy(){
|
|||||||
MTGAbilityBasicFeatures::MTGAbilityBasicFeatures(){
|
MTGAbilityBasicFeatures::MTGAbilityBasicFeatures(){
|
||||||
game = GameObserver::GetInstance();
|
game = GameObserver::GetInstance();
|
||||||
}
|
}
|
||||||
MTGAbilityBasicFeatures::MTGAbilityBasicFeatures(MTGCardInstance * _source, Damageable * _target):source(_source),target(_target){
|
MTGAbilityBasicFeatures::MTGAbilityBasicFeatures(MTGCardInstance * _source, Damageable * _target):target(_target),source(_source){
|
||||||
if (!target) target = source;
|
if (!target) target = source;
|
||||||
game = GameObserver::GetInstance();
|
game = GameObserver::GetInstance();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user