
Pages:<< prev 1 next >>


Off the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
Bug: Spells can be used without the cast command
Danger: Low - Spells can be used like skills or abilities instead of being passed through the cast command as they're supposed to be.
Found by: Kayle/Remcon
Fixed by: DavidHaley
---
Skills.c
Function: bool check_ability( CHAR_DATA * ch, char *command, char *argument )
Change:
To:
Function: bool check_skill( CHAR_DATA * ch, char *command, char *argument )
Change:
To:
Spells like fly or dispel magic, could be cast without passing them through the cast command, so instead of doing something like "cast 'dispel magic' self", you could get away with "dispel self" and the spell would work as if you had cast it. This was a slight oversight when a previous fix for the skill sorting was put in place and ended up being an unforeseen consequence.
Danger: Low - Spells can be used like skills or abilities instead of being passed through the cast command as they're supposed to be.
Found by: Kayle/Remcon
Fixed by: DavidHaley
---
Skills.c
Function: bool check_ability( CHAR_DATA * ch, char *command, char *argument )
Change:
sn = ch_slookup( ch, command );
To:
sn = find_ability( ch, command, TRUE );
Function: bool check_skill( CHAR_DATA * ch, char *command, char *argument )
Change:
sn = ch_slookup( ch, command );
To:
sn = find_skill( ch, command, TRUE );
Spells like fly or dispel magic, could be cast without passing them through the cast command, so instead of doing something like "cast 'dispel magic' self", you could get away with "dispel self" and the spell would work as if you had cast it. This was a slight oversight when a previous fix for the skill sorting was put in place and ended up being an unforeseen consequence.
Pages:<< prev 1 next >>