Script Function: Q428

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q428(obj Q5UY, int Q45Y, obj Q5U8, obj dest, int Q65M, int Q5NQ)
 {
   int damage = Q45Y;
   if (isNPC(dest))
   {
     damage = Q45Y * 0x02;
   }
   obj caster = Q5U8;
   if (Q5NQ)
   {
     caster = dest;
   }
   damage = Q43G(Q5UY, caster, damage);
   if (isValid(dest))
   {
     if (inJusticeRegion(getLocation(dest)))
     {
       damage = Q4BI(Q5U8, dest, damage);
     }
     else
     {
       damage = Q4BH(Q5U8, dest, damage);
     }
   }
   Q423(Q5U8, dest, damage, Q65M, Q5NQ);
   return (damage);
 }