mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 09:39:20 +02:00
fix runeFunction
This commit is contained in:
parent
a3cb7f6d32
commit
24f95d7094
@ -1808,10 +1808,8 @@ bool RuneSpell::executeUse(Player* player, Item* item, const Position&, Thing* t
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!scripted) {
|
bool result = false;
|
||||||
return false;
|
if (scripted) {
|
||||||
}
|
|
||||||
|
|
||||||
LuaVariant var;
|
LuaVariant var;
|
||||||
|
|
||||||
if (needTarget) {
|
if (needTarget) {
|
||||||
@ -1835,7 +1833,12 @@ bool RuneSpell::executeUse(Player* player, Item* item, const Position&, Thing* t
|
|||||||
var.pos = toPosition;
|
var.pos = toPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!internalCastSpell(player, var, isHotkey)) {
|
result = internalCastSpell(player, var, isHotkey);
|
||||||
|
} else if (runeFunction) {
|
||||||
|
result = runeFunction(this, player, toPosition);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!result) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user