Core/SmartAI: There's a function for that

This commit is contained in:
ariel- authored and Aokromes committed 2016-10-24 11:10:26 +02:00
1 parent 75b4071ccb
commit 947086fb54
1 file changed
+1 -2
@@ -98,8 +98,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
//calc random
if (e.GetEventType() != SMART_EVENT_LINK && e.event.event_chance < 100 && e.event.event_chance)
{
uint32 rnd = urand(1, 100);
if (e.event.event_chance <= rnd)
if (!roll_chance_i(e.event.event_chance))
return;
}
e.runOnce = true;//used for repeat check