1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix target selection for teleport

This commit is contained in:
Ivan Savenko
2023-03-31 22:15:24 +03:00
parent 4c6dbb5037
commit e9aed2761c
4 changed files with 11 additions and 23 deletions

View File

@@ -79,9 +79,6 @@ class BattleStacksController
///when animation is playing, we should wait till the end to make the next stack active; nullptr of none
const CStack *stackToActivate;
/// stack that was selected for multi-target spells - Teleport / Sacrifice
const CStack *selectedStack;
/// for giving IDs for animations
ui32 animIDhelper;
@@ -126,7 +123,6 @@ public:
void activateStack(); //copy stackToActivate to activeStack to enable controls of the stack
void setActiveStack(const CStack *stack);
void setSelectedStack(const CStack *stack);
void showAliveStack(Canvas & canvas, const CStack * stack);
void showStack(Canvas & canvas, const CStack * stack);
@@ -140,7 +136,6 @@ public:
void addNewAnim(BattleAnimation *anim); //adds new anim to pendingAnims
const CStack* getActiveStack() const;
const CStack* getSelectedStack() const;
const std::vector<uint32_t> getHoveredStacksUnitIds() const;
void update();