Use this function to restrict certain types of functionality when the actor is a weaker immortal than the target. For instance weaker immortals cannot usually perform aggressive or offensive actions against higher immortals. If the @actor can perform the action on @target then 1 is returned; otherwise 0 is returned. It is better to use this function than to check levels directly since levels and/or the criteria for this condition may change or be expanded in the future.
Example:
if( !%mobCheckImmortalLevels( @actor, @target ) ) { %mobCheckImmortalLevels( @actor, @target ) return } endif |