diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-16 19:50:52 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-16 19:50:52 +0000 |
commit | e5be0261a4419cb2b6849a751d04477ef40dca79 (patch) | |
tree | 0fd6506778c1ff806bed61abff36d24bf5cd6b1e /src/map/skill.c | |
parent | f8047993636ed47b0cb6c49ff650f0bd5e9217b0 (diff) | |
download | hercules-e5be0261a4419cb2b6849a751d04477ef40dca79.tar.gz hercules-e5be0261a4419cb2b6849a751d04477ef40dca79.tar.bz2 hercules-e5be0261a4419cb2b6849a751d04477ef40dca79.tar.xz hercules-e5be0261a4419cb2b6849a751d04477ef40dca79.zip |
- Spirit of Wizard will now consume an item 7321 each time it blocks reflected magic.
- Added script command jobname, retrieves a given's class name as per the appropiate msg_athena.txt entry (this command should had been added years ago)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8320 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 75ae90425..671dce936 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1877,8 +1877,11 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds tsd = (bl->type == BL_PC)?(TBL_PC*)bl:NULL; if (sc && !sc->count) sc = NULL; //Don't need it. - if (sc && sc->data[SC_SPIRIT].timer != -1 && sc->data[SC_SPIRIT].val2 == SL_WIZARD) - { //Spirit of Wizard blocks bounced back spells. + //Spirit of Wizard blocks bounced back spells. + if (sc && sc->data[SC_SPIRIT].timer != -1 && sc->data[SC_SPIRIT].val2 == SL_WIZARD + && !(tsd && (type = pc_search_inventory (tsd, 7321)) < 0)) + { + if (tsd) pc_delitem(tsd, type, 1, 0); dmg.damage = dmg.damage2 = 0; dmg.dmg_lv = ATK_FLEE; } |