Cybah
Emperor
- Joined
- Jun 22, 2007
- Messages
- 1,481
on combat result:
this does not work (no error). where is the mistake?
edit: must look like this right?
edit2: better should be then...
PHP:
if gc.getDomainInfo(unitX.getDomainType()).getType() == gc.getInfoTypeForString("DOMAIN_LAND") and gc.getDomainInfo(unitY.getDomainType()).getType() == gc.getInfoTypeForString("DOMAIN_LAND"):
this does not work (no error). where is the mistake?
edit: must look like this right?
PHP:
if gc.getUnitInfo(pWinner.getUnitType()).getDomainType() == gc.getInfoTypeForString("DOMAIN_LAND") and gc.getUnitInfo(pLoser.getUnitType()).getDomainType() == gc.getInfoTypeForString("DOMAIN_LAND"):
edit2: better should be then...
PHP:
if unitX.getDomainType() == gc.getInfoTypeForString("DOMAIN_LAND") and unitY.getDomainType() == gc.getInfoTypeForString("DOMAIN_LAND"):