//---------------------------------------------------------------------------------------------- void AttackEntityAction::OnFailure(RtsGame& game, const WorldClock& p_clock) { GameEntity* pAttacker = game.Self()->GetEntity(m_attackerId); if (pAttacker && pAttacker->IsLocked() && pAttacker->Owner() == this) pAttacker->Unlock(this); }