Core/Items: Add ItemContext param to Item::Create function
Port From (https://github.com/TrinityCore/TrinityCore/commit/0a2d9ad2f7673e2b7ee62b7cc6f1a19639d37864)
This commit is contained in:
@@ -2703,7 +2703,7 @@ namespace Scripts.Spells.Generic
|
||||
return;
|
||||
}
|
||||
|
||||
CreateItem(effIndex, itemId[RandomHelper.URand(0, 4)]);
|
||||
CreateItem(effIndex, itemId[RandomHelper.URand(0, 4)], ItemContext.None);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1345,7 +1345,7 @@ namespace Scripts.Spells.Items
|
||||
return;
|
||||
}
|
||||
|
||||
CreateItem(effIndex, newitemid);
|
||||
CreateItem(effIndex, newitemid, ItemContext.None);
|
||||
}
|
||||
|
||||
public override void Register()
|
||||
|
||||
Reference in New Issue
Block a user