From 198e82ada87061117b9625432514c35f361d6516 Mon Sep 17 00:00:00 2001 From: testingapisname Date: Tue, 16 May 2023 08:50:31 -0500 Subject: [PATCH] [Issue][#7378] added check for raid_event type is pull and raid_event cooldown is set to 0 --- engine/sim/raid_event.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/sim/raid_event.cpp b/engine/sim/raid_event.cpp index 75dca27e8f7..8ee908734b2 100644 --- a/engine/sim/raid_event.cpp +++ b/engine/sim/raid_event.cpp @@ -2124,7 +2124,10 @@ void raid_event_t::init( sim_t* sim ) try { auto raid_event = create( sim, name, options ); - + if ( raid_event->type == "pull" && raid_event->cooldown <= timespan_t::zero() ) + { + throw std::invalid_argument( "raid_event type is pull and max_time is set to 0" ); + } if ( raid_event->cooldown <= timespan_t::zero() ) { throw std::invalid_argument( "Cooldown not set or negative." );