mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Merge pull request #366 from pilovm/308-fix-multiple-spell-cast-attempts
Does not reassign castCount so it being casted only once
This commit is contained in:
commit
467633a860
@ -74,8 +74,7 @@ bool CastCustomSpellAction::Execute(Event event)
|
||||
itemTarget = *items.begin();
|
||||
else
|
||||
{
|
||||
castCount = atoi(param.c_str());
|
||||
if (castCount > 0)
|
||||
if (atoi(param.c_str()) > 0)
|
||||
text = text.substr(0, pos);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user