30 lines
758 B
Ucode
30 lines
758 B
Ucode
/*
|
|
--------------------------------------------------------------
|
|
ObjCondition_Counter_SE
|
|
--------------------------------------------------------------
|
|
|
|
Bug-fixed version if ObjCondition_Counter_SE.
|
|
|
|
- ConditionIsValid() returns false if ObjOwner is none
|
|
|
|
Author : PooSH
|
|
Original Author : Alex Quick
|
|
|
|
--------------------------------------------------------------
|
|
*/
|
|
|
|
class ObjCondition_WaveCounter_SE extends ObjCondition_WaveCounter;
|
|
|
|
// Dunno why, but sometimes it is called if condition is inactive (even if other or none objective is running)
|
|
function bool ConditionIsValid()
|
|
{
|
|
if ( GetObjOwner() == none )
|
|
return false; // wtf?
|
|
|
|
return super.ConditionIsValid();
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
}
|