コード例 #1
0
 public override SpellFailedReason InitializeTarget(WorldObject target)
 {
     if (!(target is NPC))
     {
         return(SpellFailedReason.BadTargets);
     }
     return(SpellCast.CheckTame(this.m_cast.CasterObject as Character, (NPC)target) != TameFailReason.Ok
         ? SpellFailedReason.DontReport
         : SpellFailedReason.Ok);
 }