Broken CastSpell with item
Posted: Sat Oct 03, 2009 1:24 pm
For some time the CastSpell command in ISXEQ has been broken when used with an item. Here is a patch that restores this functionality.
Devs, can this please be rolled into the next release ?
Devs, can this please be rolled into the next release ?
Code: Select all
--- MQ2-20090915-orig/MQ2Main/ISXEQ/ISXEQCommands.cpp 2009-04-11 18:28:12.000000000 -0500
+++ MQ2-20090915/MQ2Main/ISXEQ/ISXEQCommands.cpp 2009-10-03 12:19:29.543407200 -0500
@@ -562,7 +562,11 @@
}
}
if (FOUND) {
- pCharData1->CastSpell(10,pItem->Clicky.SpellID,(EQ_Item**)item,0,slot,-1,-1,0,0,1);
+ if(CInvSlot *pSlot = pInvSlotMgr->FindInvSlot(slot))
+ {
+ CXPoint p; p.A=0; p.B=0;
+ pSlot->HandleRButtonUp(&p);
+ }
return 0;
}
}