Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------
- -- BrainJack
- --
- ---------------------------------------------------
- require("scripts/globals/settings");
- require("scripts/globals/status");
- require("scripts/globals/monstertpmoves");
- ---------------------------------------------------
- function onMobSkillCheck(target,mob,skill)
- -- See PW's script
- local phase = mob:getLocalVar("phase");
- if (phase == 2) then
- return 0;
- else
- return 1;
- end
- end;
- function onMobWeaponSkill(target, mob, skill)
- local numhits = 1;
- local accmod = 1;
- local dmgmod = 2.3;
- local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT);
- local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded);
- if (info.hitslanded > 0) then
- local typeEffect = EFFECT_TERROR;
- local power = 0;
- local duration - 60;
- if (not target:isPC()) then
- skill:setMsg(MSG_MISS);
- return dmg;
- end
- local msg = MobStatusEffectMove(mob, target, typeEffect, power, 3, 60);
- mob:resetEnmity(target);
- end
- target:delHP(dmg);
- return dmg;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement