summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r--npc/functions/hub.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 664424a29..45fd8979b 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -320,13 +320,20 @@ function script HUB_Logout {
// HUB_SkillInvoke ( )
function script HUB_SkillInvoke {
// Something is... wrong
- if (!@skillId) {
+ if (@skillId < 1) {
Exception("ILLEGAL SKILL PASSED TO HUB. It has been compromised, Jim.", RB_DEBUGMES|RB_IRCBROADCAST);
debugmes "Legal Caster: %s", strcharinfo(0);
debugmes "Effective Caster: %d", @skillCaster;
return;
}
+ // Missing Skill Target - Don't ask me, something went wrong.
+ if (@skillTarget < 1) {
+ //@skillTarget = getcharid(3);
+ consolewarn("Skill %d has no target!", @skillId);
+ consolewarn("Skill Data - Name \"%s\" Level %d User \"%s\"", getskillname(@skillId), @skillLv, strcharinfo(0));
+ }
+
// Homunculus Cycle
/* *********************************************************************** */
//debugmes "Skill caster %d", @skillCaster;