Find
You are looking at a rod of magic cancellation
Created by
omenofdoom
, last updated 24 Jun 2009
Code
if target of use then checkit;
##checkit:
if $init_obj = $actor's host then checkmat else end;
##checkmat:
if $second's material like '_spell_' then checkmana else end;
##checkmana:
$mana = $second's mana;
$mymana = $init_obj's mana;
add 3 to $mana;
if $mana > $mymana then notenough else cancelit;
##notenough:
sayto $init_obj,"(You don't have enough mana to cancel that spell!)";
print "[$actor] glows slightly, then falters";
##cancelit:
print "[$actor] glows brightly, shimmering with different colors!";
take $mana from $mymana;
print "[$second] flickers slightly, then fades away";
set $init_obj's mana to $mymana;
set $second's counter to 4;