AI ignore sphinx of jwar isle

This commit is contained in:
Anthony Calosa
2017-02-20 23:23:13 +08:00
parent 2d93d9b3cc
commit bb9d98cc0c
+1 -1
View File
@@ -619,7 +619,7 @@ int OrderedAIAction::getEfficiency()
} }
else if (GenericRevealAbility * grA = dynamic_cast<GenericRevealAbility *>(a)) else if (GenericRevealAbility * grA = dynamic_cast<GenericRevealAbility *>(a))
{ {
if(grA->source->getAICustomCode().size()) if(grA->source->getAICustomCode().size() && grA->source->alias != 185709)//Sphinx of Jwar Isle so the ai will ignore it
efficiency = 45 + (owner->getRandomGenerator()->random() % 50); efficiency = 45 + (owner->getRandomGenerator()->random() % 50);
else else
efficiency = 0; efficiency = 0;