Skip to content

Commit

Permalink
Spellbook line changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonSlayer62 committed Nov 11, 2023
1 parent 19d2f29 commit 24e1c5e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/js/item/runebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ function CastSpell( pSocket, pUser, spellNum, checkReagentReq )
// Is the player casting recall holding any objects?
var itemRHand = pUser.FindItemLayer( 0x01 );
var itemLHand = pUser.FindItemLayer( 0x02 );
if( ValidateObject( itemLHand ) && itemLHand.type != 119 || ( ValidateObject( itemRHand ) && itemRHand.type != 9 || itemRHand.type != 119 )) // Spellbook //spell channeling
if( ValidateObject( itemLHand ) && itemLHand.type != 119 || ( ValidateObject( itemRHand ) && ( itemRHand.type != 9 || itemRHand.type != 119 ))) // Spellbook //spell channeling
{
pSocket.SysMessage( GetDictionaryEntry( 708, pSocket.language )); // You cannot cast with a weapon equipped.
return;
Expand Down
2 changes: 1 addition & 1 deletion data/js/magic/clumsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function onSpellCast( mSock, mChar, directCast, spellNum )
{
var itemRHand = mChar.FindItemLayer( 0x01 );
var itemLHand = mChar.FindItemLayer( 0x02 );
if(( itemLHand && itemLHand.type != 119 ) || (itemRHand && itemRHand.type != 9 || itemRHand.type != 119 )) // Spellbook
if(( itemLHand && itemLHand.type != 119 ) || ( itemRHand && ( itemRHand.type != 9 || itemRHand.type != 119 ))) // Spellbook
{
if( mSock != null )
{
Expand Down
2 changes: 1 addition & 1 deletion data/js/magic/createfood.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function onSpellCast( mSock, mChar, directCast, spellNum )
{
var itemRHand = mChar.FindItemLayer( 0x01 );
var itemLHand = mChar.FindItemLayer( 0x02 );
if(( itemLHand && itemLHand.type != 119 ) || ( itemRHand && itemRHand.type != 9 || itemRHand.type != 119 )) // Spellbook
if(( itemLHand && itemLHand.type != 119 ) || ( itemRHand && ( itemRHand.type != 9 || itemRHand.type != 119 ))) // Spellbook
{
if( mSock )
{
Expand Down
2 changes: 1 addition & 1 deletion data/js/magic/level1targ.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ItemInHandCheck( mChar, mSock, spellType )
{
var itemRHand = mChar.FindItemLayer( 0x01 );
var itemLHand = mChar.FindItemLayer( 0x02 );
if(( itemLHand && itemLHand.type != 119 ) || ( itemRHand && itemRHand.type != 9 || itemRHand.type != 119 )) // Spellbook
if(( itemLHand && itemLHand.type != 119 ) || ( itemRHand && ( itemRHand.type != 9 || itemRHand.type != 119 ))) // Spellbook
{
if( mSock )
{
Expand Down

0 comments on commit 24e1c5e

Please sign in to comment.