function check_skill35_proc(&$pa, &$pd, $active) { if (eval(__MAGIC__)) { return $___RET_VALUE; } eval(import_module('skill35', 'player', 'logger')); if (!\skillbase\skill_query(35, $pa) || !check_unlocked35($pa)) { return array(); } if ($pa['wepk'] != 'WP') { return array(); } if (rand(0, 99) < calculate_skill35_proc_rate($pa, $pd, $active)) { if ($active) { $log .= "<span class=\"yellow\">你朝着{$pd['name']}打出了凶猛的一击!<span class=\"clan\">敌人被打晕了过去!</span></span><br>"; } else { $log .= "<span class=\"yellow\">{$pa['name']}朝你打出了凶猛的一击!<span class=\"clan\">你被打晕了过去!</span></span><br>"; } $clv = (int) \skillbase\skill_getvalue(35, 'lvl', $pa); $dmggain = (100 + $attgain[$clv]) / 100; \skill602\set_stun_period($sk35_stuntime[$clv] * 1000, $pd); \skill602\send_stun_battle_news($pa['name'], $pd['name']); return array($dmggain); } return array(); }
function check_skill35_proc(&$pa, &$pd, $active) { if (eval(__MAGIC__)) { return $___RET_VALUE; } eval(import_module('skill35', 'player', 'logger')); if (!\skillbase\skill_query(35, $pa) || !check_unlocked35($pa)) { return array(); } if ($pa['wepk'] != 'WP') { return array(); } if (rand(0, 99) < calculate_skill35_proc_rate($pa, $pd, $active)) { if ($active) { $log .= "<span class=\"yellow\">你朝着{$pd['name']}打出了凶猛的一击!</span><br>"; } else { $log .= "<span class=\"yellow\">{$pa['name']}朝你打出了凶猛的一击!</span><br>"; } $dmggain = (100 + $attgain[\skillbase\skill_getvalue(35, 'lvl', $pa)]) / 100; return array($dmggain); } return array(); }