Script Function: Q4BH

From Ultima Online: The Second Age
Revision as of 17:10, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4BH(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4BH(obj user, obj usedon, int damage)
 {
   if (isDead(usedon))
   {
     return (0x00);
   }
   if (testAndLearnSkill(usedon, 0x1A, Q42P(damage), 0x32) > 0x00)
   {
     systemMessage(usedon, "You feel yourself resisting magical energy!");
     return ((damage + 0x01) / 0x02);
   }
   return (damage);
 }