1
This commit is contained in:
parent
1e06c5571b
commit
6de9cb4a0d
@ -36,7 +36,6 @@
|
|||||||
#include "buff/select_target_with_self_pos.h"
|
#include "buff/select_target_with_self_pos.h"
|
||||||
#include "buff/sprint.h"
|
#include "buff/sprint.h"
|
||||||
#include "buff/summon_loot.h"
|
#include "buff/summon_loot.h"
|
||||||
#include "buff/summon_hero.h"
|
|
||||||
#include "buff/summon_obstacle.h"
|
#include "buff/summon_obstacle.h"
|
||||||
#include "buff/turnover.h"
|
#include "buff/turnover.h"
|
||||||
#include "buff/use_skill.h"
|
#include "buff/use_skill.h"
|
||||||
@ -118,8 +117,6 @@ std::shared_ptr<Buff> BuffFactory::MakeBuff(const mt::Buff* buff_meta)
|
|||||||
return std::make_shared<SelectTargetWithSelfPosBuff>();
|
return std::make_shared<SelectTargetWithSelfPosBuff>();
|
||||||
case kBET_Sprint:
|
case kBET_Sprint:
|
||||||
return std::make_shared<SprintBuff>();
|
return std::make_shared<SprintBuff>();
|
||||||
case kBET_SummonHero:
|
|
||||||
return std::make_shared<SummonHeroBuff>();
|
|
||||||
case kBET_SummonObstacle:
|
case kBET_SummonObstacle:
|
||||||
return std::make_shared<SummonObstacleBuff>();
|
return std::make_shared<SummonObstacleBuff>();
|
||||||
case kBET_TurnOver:
|
case kBET_TurnOver:
|
||||||
|
@ -607,12 +607,16 @@ void CallFuncBuff::SummonHeroSpecPoint()
|
|||||||
float x = meta->GetBuffParam3(this);
|
float x = meta->GetBuffParam3(this);
|
||||||
float y = meta->GetBuffParam4(this);
|
float y = meta->GetBuffParam4(this);
|
||||||
float z = meta->GetBuffParam5(this);
|
float z = meta->GetBuffParam5(this);
|
||||||
|
if (!owner->dead || meta->dead_valid() != 0) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CallFuncBuff::SummonHeroSpecDistance()
|
void CallFuncBuff::SummonHeroSpecDistance()
|
||||||
{
|
{
|
||||||
int hero_id = meta->_int_buff_param2;
|
int hero_id = meta->_int_buff_param2;
|
||||||
float distance = meta->GetBuffParam3(this);
|
float distance = meta->GetBuffParam3(this);
|
||||||
|
if (!owner->dead || meta->dead_valid() != 0) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CallFuncBuff::ClearSummonHero()
|
void CallFuncBuff::ClearSummonHero()
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
#include "precompile.h"
|
|
||||||
|
|
||||||
#include "buff/summon_hero.h"
|
|
||||||
|
|
||||||
#include "creature.h"
|
|
||||||
|
|
||||||
#include "mt/Buff.h"
|
|
||||||
|
|
||||||
void SummonHeroBuff::Activate()
|
|
||||||
{
|
|
||||||
if (!owner->dead || meta->dead_valid() != 0) {
|
|
||||||
owner->SummonHero(this, owner->GetPos(), owner->GetMoveDir());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void SummonHeroBuff::Deactivate()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "buff.h"
|
|
||||||
|
|
||||||
class SummonHeroBuff : public Buff
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
virtual void Activate() override;
|
|
||||||
virtual void Deactivate() override;
|
|
||||||
|
|
||||||
};
|
|
Loading…
x
Reference in New Issue
Block a user