mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix (core\script) Double to Float Fix (#10161)
This commit is contained in:
@@ -175,7 +175,7 @@ public:
|
|||||||
_initialSelection = false;
|
_initialSelection = false;
|
||||||
// Find victim of Summon Gargoyle spell
|
// Find victim of Summon Gargoyle spell
|
||||||
std::list<Unit*> targets;
|
std::list<Unit*> targets;
|
||||||
Acore::AnyUnfriendlyUnitInObjectRangeCheck u_check(me, me, 50);
|
Acore::AnyUnfriendlyUnitInObjectRangeCheck u_check(me, me, 50.0f);
|
||||||
Acore::UnitListSearcher<Acore::AnyUnfriendlyUnitInObjectRangeCheck> searcher(me, targets, u_check);
|
Acore::UnitListSearcher<Acore::AnyUnfriendlyUnitInObjectRangeCheck> searcher(me, targets, u_check);
|
||||||
Cell::VisitAllObjects(me, searcher, 50.0f);
|
Cell::VisitAllObjects(me, searcher, 50.0f);
|
||||||
for (std::list<Unit*>::const_iterator iter = targets.begin(); iter != targets.end(); ++iter)
|
for (std::list<Unit*>::const_iterator iter = targets.begin(); iter != targets.end(); ++iter)
|
||||||
|
|||||||
Reference in New Issue
Block a user