Check multiple token conditions correctly
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13144 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
d3c7e5d24f
commit
59ce1f64fa
|
@ -14,10 +14,12 @@
|
||||||
## .*
|
## .*
|
||||||
## ENDDIALOGCHECK
|
## ENDDIALOGCHECK
|
||||||
|
|
||||||
|
verdict = False
|
||||||
status = self.getStatus(args[0])
|
status = self.getStatus(args[0])
|
||||||
for value in args[1:]:
|
for value in args[1:]:
|
||||||
if (status == value) or (value == "*"):
|
if (status == value) or (value == "*"):
|
||||||
pass
|
verdict = True
|
||||||
else:
|
|
||||||
verdict = False
|
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue