rott/kf_sources/ScrnStoryGame/Classes/ObjCondition_WaveCounter_SE.uc
2026-07-14 20:27:09 +07:00

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
{
}