diff --git a/server/gameserver/creature.cc b/server/gameserver/creature.cc index 2040bfd1..da92653b 100644 --- a/server/gameserver/creature.cc +++ b/server/gameserver/creature.cc @@ -1702,6 +1702,20 @@ void Creature::SummonHero(Buff* buff, const glm::vec3& dir ) { + #if 1 + const mt::Hero* hero_meta = mt::Hero::GetById(buff->meta->_int_buff_param1); + if (hero_meta) { + int life_time = 10000; + bool through_wall = false; + InternalSummonHero(buff, + hero_meta, + GetAttackDir(), + pos, + through_wall, + 1, + life_time); + } + #else for (auto& info : buff->meta->_hero_infos) { int through_wall = std::get<0>(info); float x = std::get<1>(info); @@ -1748,6 +1762,7 @@ void Creature::SummonHero(Buff* buff, }//end for j } } + #endif } bool Creature::FreezeOperate() @@ -2024,7 +2039,11 @@ void Creature::TraverseSkill(std::function func) bool Creature::TrySummonHero(const mt::Hero* hero_meta, glm::vec3 dir, Position born_pos, bool through_wall) { + #if 1 + return true; + #else abort(); + #endif } Hero* Creature::InternalSummonHero(Buff* buff, const mt::Hero* hero_meta, glm::vec3 dir, Position born_pos, diff --git a/server/gameserver/mt/Buff.cc b/server/gameserver/mt/Buff.cc index 7c4b2953..25b1e5ad 100644 --- a/server/gameserver/mt/Buff.cc +++ b/server/gameserver/mt/Buff.cc @@ -188,6 +188,7 @@ namespace mt } } } + #if 0 { std::vector strings; a8::Split(buff_param1(), strings, '|'); @@ -208,6 +209,7 @@ namespace mt } } } + #endif if (buff_effect() == kBET_BatchAddBuff) { std::vector strings1; a8::Split(buff_param1(), strings1, '|');