quests: Default values if the keys don't exist in the cogDict.

This commit is contained in:
Harvir 2014-06-12 19:34:27 +01:00
parent 0eed59b01f
commit acf6e700ad

View file

@ -768,7 +768,7 @@ class SkeleReviveQBase:
return TTLocalizer.v2CogP
def doesCogCount(self, avId, cogDict, zoneId, avList):
return cogDict['hasRevives'] and avId in cogDict['activeToons'] and self.isLocationMatch(zoneId)
return cogDict.get('hasRevives', False) and avId in cogDict.get('activeToons', []) and self.isLocationMatch(zoneId)
class SkeleReviveQuest(CogQuest, SkeleReviveQBase):