summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 1966ce6df..5d510a709 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -633,6 +633,17 @@ function script alignment {
return 0;
}
+// Returns if you are a legendary weapon holder
+// islegendary( {strcharinfo} )
+function script islegendary {
+ .@you$ = getarg(0, strcharinfo(0));
+ return (.@you$ == $LIGHT_HOLDER$ ||
+ .@you$ == $AEGIS_HOLDER$ ||
+ .@you$ == $TYRAN_HOLDER$ ||
+ .@you$ == $RUNES_HOLDER$ ||
+ .@you$ == $DEMUR_HOLDER$);
+}
+
// Returns if an event is a ranked Aurora Event or not
// (Had to be moved from functions/aurora.txt)
function script FYEventUsesRanking {