Skip to content

Commit

Permalink
Merge pull request #245 from DragonSlayer62/magic_item.js-fix
Browse files Browse the repository at this point in the history
Added to block ATT
  • Loading branch information
Xoduz authored Dec 4, 2023
2 parents be0670d + 963e2b5 commit 89bf0e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/js/item/magic_items.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ function CreateMagicWeapon( tierNum, placeHolderItem )
// Loop through all the properties for our new magic item and copy them over to the placeholder item
for( var itemProp in rndWeapon )
{
if( itemProp != null && itemProp != "serial" && itemProp != "scripttrigger" && itemProp != "scriptTriggers" )
if( itemProp != null && itemProp != "serial" && itemProp != "scripttrigger" && itemProp != "scriptTriggers" && itemProp != "att" )
{
if( typeof( rndWeapon[itemProp] ) != "undefined" && rndWeapon[itemProp] != null )
{
Expand Down
3 changes: 3 additions & 0 deletions source/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3/12/2023 - Dragon Slayer
Fixed Magic Weapons setting damage correctly when they are generated.(js Magic_Items)

30/11/2023 - Dragon Slayer
Added support for new DFN tag in spawn regions that allows defining one or more exclusion areas per spawn region to prevent spawning of objects within said regions:
EXCLUDEAREA=x1,y1,x2,y2 // Area within defined boundary will be excluded as valid spawn area (Special, Thanks to Xuri)
Expand Down

0 comments on commit 89bf0e1

Please sign in to comment.