Set weapon Magical flag when enchanting a weapon

deque
scrawl 10 years ago
parent a42e60970b
commit 99c276baa9

@ -378,6 +378,7 @@ namespace MWClass
newItem.mName=newName;
newItem.mData.mEnchant=enchCharge;
newItem.mEnchant=enchId;
newItem.mData.mFlags |= ESM::Weapon::Magical;
const ESM::Weapon *record = MWBase::Environment::get().getWorld()->createRecord (newItem);
return record->mId;
}

Loading…
Cancel
Save