summaryrefslogtreecommitdiff
path: root/src/map/skill.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-19 09:41:31 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-19 09:41:31 -0400
commit1ba24673e7064e39406e6faf11d790c2dcc2ac00 (patch)
tree7e2645f6fdec1dcc63ae56366371246f62865dcd /src/map/skill.cpp
parentc3e06ffe6437d27a2a7c6ddb2dc487ff2f007adf (diff)
parentc786a93e91adaf68780a5fd7585f51d0528f92ed (diff)
downloadtmwa-1ba24673e7064e39406e6faf11d790c2dcc2ac00.tar.gz
tmwa-1ba24673e7064e39406e6faf11d790c2dcc2ac00.tar.bz2
tmwa-1ba24673e7064e39406e6faf11d790c2dcc2ac00.tar.xz
tmwa-1ba24673e7064e39406e6faf11d790c2dcc2ac00.zip
Merge self-fork from mekolat/magic-v3
Magic v3
Diffstat (limited to 'src/map/skill.cpp')
-rw-r--r--src/map/skill.cpp21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/map/skill.cpp b/src/map/skill.cpp
index 8a397a3..d9a7717 100644
--- a/src/map/skill.cpp
+++ b/src/map/skill.cpp
@@ -51,7 +51,6 @@
#include "battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
-#include "magic-stmt.hpp"
#include "mob.hpp"
#include "pc.hpp"
@@ -822,13 +821,6 @@ void skill_status_change_timer(TimerData *tid, tick_t tick, BlockId id, StatusCh
if (bl->bl_type == BL::PC)
sd = bl->is_player();
- if (sc_data[type].spell_invocation)
- { // Must report termination
- magic::spell_effect_report_termination(sc_data[type].spell_invocation,
- bl->bl_id, type, 0);
- sc_data[type].spell_invocation = BlockId();
- }
-
switch (type)
{
case StatusChange::SC_POISON:
@@ -900,12 +892,12 @@ int skill_status_change_start(dumb_ptr<block_list> bl, StatusChange type,
int val1,
interval_t tick)
{
- return skill_status_effect(bl, type, val1, tick, BlockId());
+ return skill_status_effect(bl, type, val1, tick);
}
int skill_status_effect(dumb_ptr<block_list> bl, StatusChange type,
int val1,
- interval_t tick, BlockId spell_invocation)
+ interval_t tick)
{
dumb_ptr<map_session_data> sd = nullptr;
eptr<struct status_change, StatusChange, StatusChange::MAX_STATUSCHANGE> sc_data;
@@ -1009,10 +1001,10 @@ int skill_status_effect(dumb_ptr<block_list> bl, StatusChange type,
break;
case StatusChange::SC_HASTE:
- calc_flag = 1;
- break;
case StatusChange::SC_PHYS_SHIELD:
case StatusChange::SC_MBARRIER:
+ calc_flag = 1;
+ break;
case StatusChange::SC_HALT_REGENERATE:
case StatusChange::SC_HIDE:
break;
@@ -1050,11 +1042,6 @@ int skill_status_effect(dumb_ptr<block_list> bl, StatusChange type,
clif_changeoption(bl);
sc_data[type].val1 = val1;
- if (sc_data[type].spell_invocation) // Supplant by newer spell
- magic::spell_effect_report_termination(sc_data[type].spell_invocation,
- bl->bl_id, type, 1);
-
- sc_data[type].spell_invocation = spell_invocation;
/* タイマー設定 */
sc_data[type].timer = Timer(gettick() + tick,