Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions msu/hooks/skills/skill.nut
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
::MSU.MH.hookTree("scripts/skills/skill", function(q) {
if (!q.contains("create"))
return;

q.create = @(__original) function()
{
if (this.m.DamageType == null)
Expand All @@ -27,6 +24,12 @@
q.m.IsApplyingPreview <- false;
q.m.PreviewField <- {};

// Add create function in skill.nut which doesn't exist in vanilla
// so hookTree on skill doesn't need a `.contains("create")` check
q.create <- function()
{
}

q.isType = @() function( _t, _any = true, _only = false )
{
if (_any)
Expand Down