public override void OnFire(Pointer <AbstractClass> pTarget, int weaponIndex) { if (Target.Get() == null) { if (pTarget.CastToTechno(out Pointer <TechnoClass> pTechno)) { KillStart(TechnoExt.ExtMap.Find(pTechno)); } } }
public override void OnFire(Pointer <AbstractClass> pTarget, int weaponIndex) { if (pTarget.CastToTechno(out Pointer <TechnoClass> pTechno)) { TechnoExt pTargetExt = TechnoExt.ExtMap.Find(pTechno); if (pTargetExt.Get(MissileFall.ID) == null) { pTargetExt.CreateDecorator <MissileFall>(MissileFall.ID, "Missile Fall Decorator", this, weaponIndex != 0); } } }